Clear terminal window in Node.js readline shell

后端 未结 7 866
长情又很酷
长情又很酷 2021-01-31 05:41

I have a simple readline shell written in Coffeescript:

rl = require \'readline\'
cli = rl.createInterface process.std         


        
7条回答
  •  鱼传尺愫
    2021-01-31 06:17

    In the MAC terminal, to clear the console in NodeJS, you just hit COMMAND+K just like in Google Developer Tools Console so I'm guessing that on Windows it would be CTRL+K.

提交回复
热议问题