Przeglądaj źródła

[+] Import readline for interactive config menu

Azalea (on HyDEV-Daisy) 3 lat temu
rodzic
commit
edf62e98e3
2 zmienionych plików z 7 dodań i 1 usunięć
  1. 3 1
      README.md
  2. 4 0
      hyfetch/main.py

+ 3 - 1
README.md

@@ -57,11 +57,13 @@ Updates to `neowofetch` begins with the emoji 🖼️
 
 ### TODO
 
-* [ ] Paginate flags
+* [ ] Allow left-right arrow keys ffor pagination
 * [ ] Implement light/dark background detection based on https://github.com/muesli/termenv
 
 ### Unpublished 1.4.1
 
+* 🌈 Paginate flags (#14)
+
 <details>
   <summary>🖼️ Bug Fixes</summary>
 

+ 4 - 0
hyfetch/main.py

@@ -1,6 +1,10 @@
 #!/usr/bin/env python3
 from __future__ import annotations
 
+# Do not delete import readline. Even though it's not used in the code, importing it would allow
+# arrow keys to be used in input() functions.
+import readline
+
 import argparse
 import json
 import random