show cursor after hiding it
This commit is contained in:
parent
9fe6f36c1d
commit
a106771e5b
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ process.stdin.on('keypress', (str, key) => {
|
|||
}
|
||||
if (key.sequence === '\x03' || key.sequence === '\x04') process.exit(0); // ctrl+c, ctrl+d
|
||||
});
|
||||
process.on('exit', () => {
|
||||
process.stdout.write('\x1B[?25l'); // show cursor
|
||||
})
|
||||
|
||||
const plas = [' ', '.', '*', '/', '0'];
|
||||
const progressChars = ['▏', '▎', '▍', '▌', '▋', '▊', '▉'];
|
||||
|
|
Loading…
Reference in a new issue