From 7af8bec7c34403de4d7c80a316de2f2ee815eb7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 2 Oct 2021 03:05:05 +0200 Subject: [PATCH] Curses --- README.md | 4 ++-- index.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 79a3f9d..57bbf57 100644 --- a/README.md +++ b/README.md @@ -2383,8 +2383,8 @@ def main(screen): while ch != ascii.ESC: height, _ = screen.getmaxyx() screen.clear() - for y, a_path in enumerate(paths[first : first+height]): - screen.addstr(y, 0, a_path, A_REVERSE * (selected == first + y)) + for y, filename in enumerate(paths[first : first+height]): + screen.addstr(y, 0, filename, A_REVERSE * (selected == first + y)) ch = screen.getch() selected += (ch == KEY_DOWN) - (ch == KEY_UP) selected = max(0, min(len(paths)-1, selected)) diff --git a/index.html b/index.html index 7afc768..009e5f7 100644 --- a/index.html +++ b/index.html @@ -226,7 +226,7 @@ pre.prettyprint {
- +
@@ -2093,8 +2093,8 @@ plt.clf() # Clea while ch != ascii.ESC: height, _ = screen.getmaxyx() screen.clear() - for y, a_path in enumerate(paths[first : first+height]): - screen.addstr(y, 0, a_path, A_REVERSE * (selected == first + y)) + for y, filename in enumerate(paths[first : first+height]): + screen.addstr(y, 0, filename, A_REVERSE * (selected == first + y)) ch = screen.getch() selected += (ch == KEY_DOWN) - (ch == KEY_UP) selected = max(0, min(len(paths)-1, selected)) @@ -3005,7 +3005,7 @@ $ pyinstaller script.py --add-data '<path>:.'