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
This commit is contained in:
Zach White authored and GitHub committed 2020-10-17 21:01:11 -07:00
1 parent 7d5ba88e6f
commit 445cd95d17
3 files changed
+76 -31

No files matched your search

+6 -1
View File
@@ -1,7 +1,12 @@
"""Functions to collect user input.
"""
from milc import cli, format_ansi
from milc import cli
try:
from milc import format_ansi
except ImportError:
from milc.ansi import format_ansi
def yesno(prompt, *args, default=None, **kwargs):