Commands in julia

#1

how to clean the screen (in console)
Simple commands in julia’s console

#2

Are you looking for CTRL + L ?

3 Likes
#3

print("\e[2J")

1 Like
#4

Generally speaking the REPL is very compatible with keyboard commands, so anything that works in bash (or zsh or whatever) should work in the REPL. I’m not aware of any exceptions, even forward and reverse search work (e.g. CTRL-R).

(I don’t know about Windows. In my experience nothing ever works right in Windows, so you can probably expect nothing to work in this case as well.)

1 Like
#5

Hitting ; will get you into shell mode, where you can type things like clear to clean the screen.

3 Likes
#6

Ctrl-L is one of the few things that do work in Windows.

#7

And if you need to clear the terminal programmatically, something like this should work:

import REPL
REPL.Terminals.clear(Base.active_repl.t);
1 Like
#8

that was the answer he was needing …

thank you very much to all …