From 48db545c78c43ac61c7b700c1e475e77e918d4fa Mon Sep 17 00:00:00 2001 From: jill Date: Fri, 3 Sep 2021 07:07:43 +0300 Subject: [PATCH] change the process title --- index.js | 1 + render.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index df14794..c476056 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,7 @@ const render = require('./render'); const mpris = require('./mpris'); async function main() { + process.title = 'bouncy'; mpris.init(render.error, render.warning, render.info); setInterval(() => {render.render(mpris.getArtist(), mpris.getAlbum(), mpris.getTitle(), mpris.getSongStart(), mpris.getSongEnd(), mpris.getSongPauseSpot(), mpris.getSongPaused())}, render.refreshrate); } diff --git a/render.js b/render.js index 78568a9..6eacc21 100644 --- a/render.js +++ b/render.js @@ -21,7 +21,7 @@ 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\033[0m'); // show cursor + process.stdout.write('\x1B[?25h\033[0m'); // show cursor }) const plas = [' ', '.', '*', '/', '0'];