Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

(Almost) implementing 'clear'.

Unfortunately it leaves the last command (clear itself).
  • Loading branch information...
commit f44cba6fee32b5d1158f31ca255daf7dfb3d7a94 1 parent b8bf4e2
@akoprow akoprow authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/service.opa
View
4 src/service.opa
@@ -156,6 +156,10 @@ server module Shell {
parser {
case "help": print_generic_help(mods)
case "help" Rule.ws mod=(.*): print_help_for(mods, Text.to_string(mod))
+ case "clear":
+ LineEditor.clear();
+ #terminal_prev = <></>;
+ <></>
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.