1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-09-29 04:35:54 -04: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
try:
from term_image.widget import UrwidImageScreen
from term_image import disable_queries
disable_queries() # prevent phantom keystrokes from terminal queries
TuiScreen = UrwidImageScreen
except ImportError:
from urwid.raw_display import Screen