From ff2d6d8fcef09afb6320f39d71002dbe8beb79b2 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 30 Oct 2017 21:17:09 -0300 Subject: Actually clear status line properly --- src/loop-play.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/loop-play.js') diff --git a/src/loop-play.js b/src/loop-play.js index f9eaab0..09b3cad 100644 --- a/src/loop-play.js +++ b/src/loop-play.js @@ -365,9 +365,9 @@ class PlayController extends EventEmitter { this.player.on('printStatusLine', playerString => { let fullStatusLine = '' - // 1K - clears the screen from the start of the cursor onwards. This is - // here to avoid artefacts from a previously printed status line. - fullStatusLine += '\x1b[1K' + // ESC[K - clears the line going from the cursor position onwards. + // This is here to avoid artefacts from a previously printed status line. + fullStatusLine += '\x1b[K' const track = this.currentTrack -- cgit 1.3.0-6-gf8a5