I am learning sbt build tool. I use interpreted sbt. I run lot of commands and get lot of output which clutters up the screen.
sbt
The question
Sbt will load ~/.sbt/1.0/build.sbt as global settings.
~/.sbt/1.0/build.sbt
commands += Command.command("cls") { state => print("\033c") state }
Then you can run any commands with cls. For example:
~;cls;compile
~;cls;testOnly