griimnak
You're a slave to the money then you die
Essentially what i'm trying to do is clear the console after executing the app so it's nice and clean like i would with my python consoles:
in python, there's the os and sys module to communicate directly with your operating system, or emulate commands from your os etc etc.
how would i do this line in node? is there a module i can use?
I tried these:
doesn't seem to work
in python, there's the os and sys module to communicate directly with your operating system, or emulate commands from your os etc etc.
how would i do this line in node? is there a module i can use?
Python:
os.system('cls' if os.name == 'nt' else 'clear')
Code:
console.log('\033[2J');
Code:
var lines = process.stdout.getWindowSize()[1];
for(var i = 0; i < lines; i++) {
console.log('\r\n');
}
Last edited: