sbt clear screen command

前端 未结 3 742
你的背包
你的背包 2020-12-28 15:33

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.

The question

3条回答
  •  孤城傲影
    2020-12-28 16:04

    Sbt will load ~/.sbt/1.0/build.sbt as global settings.

    commands += Command.command("cls") { state =>
      print("\033c")
      state
    }
    

    Then you can run any commands with cls. For example:

    • ~;cls;compile
    • ~;cls;testOnly

提交回复
热议问题