From edf62e98e31cf82305843dc122452dc7dd0cb158 Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sat, 13 Aug 2022 15:29:47 -0400 Subject: [PATCH] [+] Import readline for interactive config menu --- README.md | 4 +++- hyfetch/main.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6400cdb7..bcea0889 100644 --- a/README.md +++ b/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) +
🖼️ Bug Fixes diff --git a/hyfetch/main.py b/hyfetch/main.py index 4fd2120b..f3a1fd88 100755 --- a/hyfetch/main.py +++ b/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