Decrease esc delay

This commit is contained in:
Paul Nameless 2020-06-06 18:20:46 +08:00
parent b84ebdb0d1
commit 31c2b6dab2
2 changed files with 5 additions and 0 deletions

View file

@ -56,6 +56,7 @@ def main():
library_path=config.TDLIB_PATH,
)
tg.login()
utils.set_shorter_esc_delay()
wrapper(partial(run, tg))

View file

@ -205,3 +205,7 @@ class suspend:
self.view.stdscr.keypad(True)
curses.curs_set(0)
curses.doupdate()
def set_shorter_esc_delay(delay=25):
os.environ.setdefault("ESCDELAY", str(delay))