add `!.clear` command.

This commit is contained in:
trans_soup 2023-11-06 23:15:59 +01:00
parent ccdcff4c8e
commit a3d013162c
2 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,7 @@ here are the commands that are specific to this REPL:
- `!.exit` exits the REPL.
- `!.env` prints out all the named functions.
- `!.clear` clears the console.
## parentheses

View File

@ -34,6 +34,8 @@ specials.set("!.env", _ => {
print(lines.join("\n"));
});
specials.set("!.clear", _ => console.clear());
function run (line) {