1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Stop ghost keystrokes from displaying junk at startup

This commit is contained in:
Daniel Schwarz 2023-12-19 15:02:24 -05:00
parent 76d8a27a85
commit 28da101929

View File

@ -1,6 +1,8 @@
# If term_image is loaded use their screen implementation which handles images # If term_image is loaded use their screen implementation which handles images
try: try:
from term_image.widget import UrwidImageScreen from term_image.widget import UrwidImageScreen
from term_image import disable_queries
disable_queries() # prevent phantom keystrokes from terminal queries
TuiScreen = UrwidImageScreen TuiScreen = UrwidImageScreen
except ImportError: except ImportError:
from urwid.raw_display import Screen from urwid.raw_display import Screen