8

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.

the12
  • 2,395
  • 5
  • 19
  • 37

1 Answers1

29

try

cls 

or

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

Vince.

Vince
  • 461
  • 4
  • 8