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 2020-10-17 21:01:11 -07:00 committed by GitHub
parent 7d5ba88e6f
commit 445cd95d17
Failed to generate hash of commit
3 changed files with 76 additions and 31 deletions

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):