Muthu Kumar
6 years ago
5 changed files with 25 additions and 11 deletions
@ -0,0 +1,12 @@ |
|||
module.exports = { |
|||
|
|||
clear: () => { |
|||
|
|||
// clear screen
|
|||
process.stdout.write('\u001b[2J'); |
|||
// set cursor position to top
|
|||
process.stdout.write('\u001b[1;1H'); |
|||
|
|||
}, |
|||
|
|||
}; |
Loading…
Reference in new issue