From 38451134843008de63627df891d351934631ac79 Mon Sep 17 00:00:00 2001 From: dbarzin Date: Sun, 5 Mar 2023 13:12:19 +0100 Subject: [PATCH] remove blink cursor --- pandora-box.py | 3 +-- tests/loop.py | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora-box.py b/pandora-box.py index 45e2839..3004e59 100755 --- a/pandora-box.py +++ b/pandora-box.py @@ -269,7 +269,7 @@ def init_curses(): curses.curs_set(0) else: # hide blinking cursor - sys.stdout.write("\033[?251") + sys.stdout.write("\033[?1;0;0c") sys.stdout.flush() # display wait display_image("WAIT") @@ -722,7 +722,6 @@ def clean(): # TODO: check key is still here - # Remove infected files files_removed = 0 has_error = False diff --git a/tests/loop.py b/tests/loop.py index 91e1626..97ac1b6 100755 --- a/tests/loop.py +++ b/tests/loop.py @@ -1,5 +1,6 @@ #!/usr/bin/python3 import os +import sys def waitMouseClick(): @@ -14,6 +15,10 @@ def waitMouseClick(): mouse.close() +# Hide blinking cursor +sys.stdout.write("\033[?1;0;0c") +sys.stdout.flush() + while True: os.system("killall fim") os.system("fim -qa image1.png 2>/dev/null &")