From db65aaba2a61f39f0ec77db2e3678c85c6750b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 15 Sep 2019 21:24:08 +0200 Subject: [PATCH] Curses --- README.md | 5 ++--- index.html | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b738db7..db56075 100644 --- a/README.md +++ b/README.md @@ -2246,8 +2246,6 @@ from tqdm import tqdm from time import sleep for el in tqdm([1, 2, 3]): sleep(0.2) -for i in tqdm(range(100)): - sleep(0.02) ``` @@ -2293,7 +2291,8 @@ def main(): wrapper(draw) def draw(screen): - curs_set(0) + curs_set(0) # Makes cursor invisible. + screen.nodelay(True) # Makes getch() non-blocking. screen.clear() screen.addstr(0, 0, 'Press ESC to quit.') while screen.getch() != ascii.ESC: diff --git a/index.html b/index.html index 6318b2d..8b39ae5 100644 --- a/index.html +++ b/index.html @@ -1943,8 +1943,6 @@ reader(adder(printer())) # 100, 101, ..., 109 from time import sleep for el in tqdm([1, 2, 3]): sleep(0.2) -for i in tqdm(range(100)): - sleep(0.02) @@ -1977,7 +1975,8 @@ pyplot.clf() # Clears figure.def draw(screen): - curs_set(0) + curs_set(0) # Makes cursor invisible. + screen.nodelay(True) # Makes getch() non-blocking. screen.clear() screen.addstr(0, 0, 'Press ESC to quit.') while screen.getch() != ascii.ESC: