Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to clear nodeJs command prompt? [duplicate]

Tags:

node.js

Is there any way to clear out the Nodejs command prompt, if you want all previous information to disappear (start afresh without having to restart Nodejs command prompt)? My tutorial says to type in clr into it, but nothing happens when I do so.

like image 401
the12 Avatar asked Jul 27 '16 00:07

the12


1 Answers

try

cls 

or

process.stdout.write('\033c')

Vince.

like image 183
Vince Avatar answered Sep 20 '22 14:09

Vince