diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/loop-play.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/loop-play.js b/src/loop-play.js index cca1108..62e67fd 100644 --- a/src/loop-play.js +++ b/src/loop-play.js @@ -463,14 +463,18 @@ class PlayController extends EventEmitter { const groupIndexArr = (track && track.groupTrackIndex) || ['', ''] fullStatusLine += processTemplateString(statusLineTemplate, Object.assign({ + esc: '\x1b', index: track ? (track.overallTrackIndex[0] + 1) : '', trackCount: track ? (track.overallTrackIndex[1]) : '', indexGroup: groupIndexArr[0], trackCountGroup: groupIndexArr[1], longIndex, - trackName: track.name + trackName: track.name, name: track.name }, playerData)) + // Clear format - custom color codes, etc. + fullStatusLine += '\x1b[0m' + // Carriage return - moves the cursor back to the start of the line, // so that the next status line is printed on top of this one. fullStatusLine += '\r' |