Browse Source

Merge pull request #181 from return42/fix-lib

[fix] utils/lib.sh: prefix_stdout show cursor (ANSI escape \e[?25h)
Markus Heiser 3 years ago
parent
commit
17fde80ece
1 changed files with 2 additions and 0 deletions
  1. 2 0
      utils/lib.sh

+ 2 - 0
utils/lib.sh

@@ -270,6 +270,8 @@ prefix_stdout () {
     (while IFS= read line; do
         echo -e "${prefix}$line"
     done)
+    # some piped commands hide the cursor, show cursory when the stream ends
+    echo -en "\e[?25h"
 }
 
 append_line() {