Revert "Add better Windows color support using colorama"
This commit is contained in:
parent
a16aa7deb2
commit
3db82d47a4
12
buku
12
buku
@ -4356,9 +4356,7 @@ def read_in(msg):
|
|||||||
disable_sigint_handler()
|
disable_sigint_handler()
|
||||||
message = None
|
message = None
|
||||||
try:
|
try:
|
||||||
# Delibrately dong this to better support Windows colorizing
|
message = input(msg)
|
||||||
print(msg, end='')
|
|
||||||
message = input()
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('Interrupted.')
|
print('Interrupted.')
|
||||||
|
|
||||||
@ -4888,12 +4886,8 @@ POSITIONAL ARGUMENTS:
|
|||||||
# only ConEmu is supported. If the user does not use ConEmu, colors are
|
# only ConEmu is supported. If the user does not use ConEmu, colors are
|
||||||
# disabled unless --colors or %BUKU_COLORS% is specified.
|
# disabled unless --colors or %BUKU_COLORS% is specified.
|
||||||
if sys.platform == 'win32' and os.environ.get('ConemuDir') is None:
|
if sys.platform == 'win32' and os.environ.get('ConemuDir') is None:
|
||||||
try:
|
if args.colorstr is None and colorstr_env is not None:
|
||||||
import colorama
|
args.nc = True
|
||||||
colorama.init()
|
|
||||||
except ImportError:
|
|
||||||
if args.colorstr is None and colorstr_env is not None:
|
|
||||||
args.nc = True
|
|
||||||
|
|
||||||
# Handle color output preference
|
# Handle color output preference
|
||||||
if args.nc:
|
if args.nc:
|
||||||
|
Loading…
Reference in New Issue
Block a user