diff --git a/index.html b/index.html index 20267de..2c0eddd 100644 --- a/index.html +++ b/index.html @@ -1952,10 +1952,9 @@ W, H = 15, 7
# $ pip3 install tqdm
->>> from tqdm import tqdm
->>> from time import sleep
->>> for el in tqdm([1, 2, 3], desc='Processing'):
-... sleep(1)
+>>> import tqdm, time
+>>> for el in tqdm.tqdm([1, 2, 3], desc='Processing'):
+... time.sleep(1)
Processing: 100%|████████████████████| 3/3 [00:03<00:00, 1.00s/it]
import curses, os
+#Curses
Runs a basic file explorer in the console:
# pip3 install windows-curses
+import curses, os
from curses import A_REVERSE, KEY_DOWN, KEY_UP, KEY_LEFT, KEY_RIGHT, KEY_ENTER
def main(screen):
diff --git a/parse.js b/parse.js
index 1c5be2a..13b4284 100755
--- a/parse.js
+++ b/parse.js
@@ -170,6 +170,7 @@ const COROUTINES =
' curses.wrapper(main)\n';
const CURSES =
+ '# pip3 install windows-curses\n' +
'import curses, os\n' +
'from curses import A_REVERSE, KEY_DOWN, KEY_UP, KEY_LEFT, KEY_RIGHT, KEY_ENTER\n' +
'\n' +
@@ -196,10 +197,9 @@ const CURSES =
const PROGRESS_BAR =
'# $ pip3 install tqdm\n' +
- '>>> from tqdm import tqdm\n' +
- '>>> from time import sleep\n' +
- '>>> for el in tqdm([1, 2, 3], desc=\'Processing\'):\n' +
- '... sleep(1)\n' +
+ '>>> import tqdm, time\n' +
+ '>>> for el in tqdm.tqdm([1, 2, 3], desc=\'Processing\'):\n' +
+ '... time.sleep(1)\n' +
'Processing: 100%|████████████████████| 3/3 [00:03<00:00, 1.00s/it]\n';
const LOGGING_EXAMPLE =