Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clojure CLI clear screen

Pardon me but I've just started learning clojure. I've run many commands in REPL CLI. But now I'm not able to clear the CLI screen. cls command also doesn't work inside the REPL. Thanks in advance!

like image 362
PrashantNagawade Avatar asked Mar 08 '23 05:03

PrashantNagawade


1 Answers

Try pressing Control-l (lower case 'L' - not the number one). If the that doesn't work try starting the REPL using rlwrap, which may implement the readline support for clearing the screen. But this all depends on how you are starting the repl, and on what platform. There's no global way to clear a terminal across Windows and UNIX variants and other containers such as Emacs buffers and Atom/ProtoREPL. This isn't really something the REPL can reasonably support since the buffer is not held by the Clojure/JVM process, but by the container you're using to display it to your screen. It's also likely that your terminal emulator provides a way to clear the buffer.

like image 163
l0st3d Avatar answered Mar 18 '23 08:03

l0st3d