forked from mirrors/qmk_userspace
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:
parent
7d5ba88e6f
commit
445cd95d17
3 changed files with 76 additions and 31 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue