Hide mouse cursor.
This commit is contained in:
1 parent
e437369b1c
commit
fbfdb3e943
1 file changed
+3
@@ -26,6 +26,7 @@ COLOR_MAP = {
|
|||||||
|
|
||||||
def matrix_rain(stdscr, color_mode, timeout=None):
|
def matrix_rain(stdscr, color_mode, timeout=None):
|
||||||
curses.curs_set(0)
|
curses.curs_set(0)
|
||||||
|
print("\033[?25l", end="", flush=True)
|
||||||
curses.start_color()
|
curses.start_color()
|
||||||
curses.use_default_colors()
|
curses.use_default_colors()
|
||||||
stdscr.nodelay(True)
|
stdscr.nodelay(True)
|
||||||
@@ -164,6 +165,8 @@ def matrix_rain(stdscr, color_mode, timeout=None):
|
|||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
finally:
|
||||||
|
print("\033[?25h", end="", flush=True)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
|
|||||||
Reference in new issue
Block a user