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.
Asked
Active
Viewed 1.3k times
1 Answers
29
try
cls
or
process.stdout.write('\033c')
Vince.

Vince
- 461
- 4
- 8
-
3
-
1Seriously? What were they thinking? `process.stdout.write('\033c') ` is what I have to type everytime I want to clear the screen? – SamuraiJack Aug 26 '20 at 20:37
-
2@SamuraiJack you can also call console.clear() or press CTRL+L on windows. – c0rnfl4k3s Aug 28 '20 at 16:29