Use escape sequences rather than tput
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 10 Dec 2020 02:32:14 +0000 (02:32 +0000)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 10 Dec 2020 02:32:14 +0000 (02:32 +0000)
day13/screen.sh

index 3bc395625169bfcc23918a1888545f20525a6aa8..e447c2a2636b6d34c304e5f0c3e55c56101c1b1c 100644 (file)
@@ -43,11 +43,11 @@ draw_tile() {
 }
 
 hide_cursor() {
-    tput civis
+    echo -en '\033[25l'
 }
 
 show_cursor() {
-    tput cvvis
+    echo -en '\033[25h'
 }
 
 draw_score_board() {