From 563231fa399e8e4edc26e84a71fd87c356f51490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 30 Mar 2023 21:24:37 +0200 Subject: [PATCH] Curses --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df113a3..51daab5 100644 --- a/README.md +++ b/README.md @@ -2429,7 +2429,7 @@ from curses import A_REVERSE, KEY_DOWN, KEY_UP, KEY_LEFT, KEY_RIGHT, KEY_ENTER def main(screen): ch, first, selected, paths = 0, 0, 0, os.listdir() - while ch != curses.ascii.ESC: + while ch not in [curses.ascii.ESC, ord('q')]: height, width = screen.getmaxyx() screen.erase() for y, filename in enumerate(paths[first : first+height]): diff --git a/index.html b/index.html index c42da56..6db54ec 100644 --- a/index.html +++ b/index.html @@ -1991,7 +1991,7 @@ print(table) def main(screen): ch, first, selected, paths = 0, 0, 0, os.listdir() - while ch != curses.ascii.ESC: + while ch not in [curses.ascii.ESC, ord('q')]: height, width = screen.getmaxyx() screen.erase() for y, filename in enumerate(paths[first : first+height]):