diff options
author | Zach White <skullydazed@gmail.com> | 2020-10-17 21:01:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 21:01:11 -0700 |
commit | 445cd95d1779709673857c36b752afa6327afff1 (patch) | |
tree | f722089d82590e624d29776e41431bcaf69e0314 /lib/python/qmk/questions.py | |
parent | 7d5ba88e6f88979c017bf27e2ad0f4c7d912f9ec (diff) | |
download | qmk_firmware-445cd95d1779709673857c36b752afa6327afff1.tar.gz qmk_firmware-445cd95d1779709673857c36b752afa6327afff1.zip |
Improve ANSI support and --no-color (#10537)
* Improve ANSI support and --no-color
* tweak when levelname gets stripped of ansi
* sync with latest milc
* make questions work with both milc versions
* pyformat
Diffstat (limited to 'lib/python/qmk/questions.py')
-rw-r--r-- | lib/python/qmk/questions.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/qmk/questions.py b/lib/python/qmk/questions.py index 27f43ac1e..865c6bbdc 100644 --- a/lib/python/qmk/questions.py +++ b/lib/python/qmk/questions.py | |||
@@ -1,7 +1,12 @@ | |||
1 | """Functions to collect user input. | 1 | """Functions to collect user input. |
2 | """ | 2 | """ |
3 | 3 | ||
4 | from milc import cli, format_ansi | 4 | from milc import cli |
5 | |||
6 | try: | ||
7 | from milc import format_ansi | ||
8 | except ImportError: | ||
9 | from milc.ansi import format_ansi | ||
5 | 10 | ||
6 | 11 | ||
7 | def yesno(prompt, *args, default=None, **kwargs): | 12 | def yesno(prompt, *args, default=None, **kwargs): |