Skip to content

Commit

Permalink
Fixed progress bar printed on start bugging into above terminal line
Browse files Browse the repository at this point in the history
  • Loading branch information
3urobeat committed Jul 14, 2022
1 parent f94d6dd commit 3f4181e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/helpers/printManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Created Date: 07.06.2022 10:45:10
* Author: 3urobeat
*
* Last Modified: 04.07.2022 23:33:06
* Last Modified: 14.07.2022 19:33:14
* Modified By: 3urobeat
*
* Copyright (c) 2022 3urobeat <https://github.com/HerrEurobeat>
Expand Down Expand Up @@ -142,5 +142,5 @@ module.exports.log = (type, str, remove) => {


//Hide cursor the first time the lib (and therefore this module) is loaded and move cursor up as first print will otherwise create a one line gap
process.stdout.write(hideCursor);
this.log("", hideCursor, true); //handle this via printManager to fix progress bar printed on start glitching into previous terminal line
process.stdout.moveCursor(0, -1);

0 comments on commit 3f4181e

Please sign in to comment.