Stop ghost keystrokes from displaying junk at startup

pull/372/head
Daniel Schwarz 2023-12-19 15:02:24 -05:00
rodzic 76d8a27a85
commit 28da101929
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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