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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With