show cursor after hiding it

This commit is contained in:
jill 2021-09-03 07:04:28 +03:00
parent 9fe6f36c1d
commit a106771e5b

View file

@ -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 = ['▏', '▎', '▍', '▌', '▋', '▊', '▉'];