console.log('\033[2J');
This works on linux. Not sure about windows.
You can “trick” the user using something like this:
var lines = process.stdout.getWindowSize()[1];
for(var i = 0; i < lines; i++) {
console.log('\r\n');
}
More Related Contents:
- Nodejs cannot find installed module on Windows
- How can I update npm on Windows?
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- How to make Unicode charset in cmd.exe by default?
- Node.js/Windows error: ENOENT, stat ‘C:\Users\RT\AppData\Roaming\npm’
- How do I disable the ‘Debug / Close Application’ dialog on Windows Vista?
- “NODE_ENV” is not recognized as an internal or external command, operable command or batch file
- Hide console of Windows Application
- gulp command not found – error after installing gulp
- Is there a better Windows Console Window? [closed]
- How to run a hello.js file in Node.js on windows?
- How to display japanese Kanji inside a cmd window under windows?
- How to use npm with node.exe?
- What is the Windows equivalent of process.on(‘SIGINT’) in node.js?
- How to Output Unicode Strings on the Windows Console
- Launch an external application from node.js
- Node npm windows file paths are too long to install packages
- Can I send some text to the STDIN of an active process under Windows?
- ‘node’ is not recognized as an internal or external command
- How to install NodeJS project locally without internet connection?
- NPM package ‘bin’ script for Windows
- Npm Please try using this command again as root/administrator
- Why does my Qt 4.5 app open a console window under Windows?
- Unicode console I/O in Haskell on Windows
- How can I programmatically refresh Windows Explorer?
- powershell : changing the culture of current session
- Connecting to Oracle database with Node.js Windows
- Start/Stop and Restart Jenkins service on Windows
- Global NPM package installed but command not found
- npm global install does not add packages to PATH on Windows 8.1