From 3db82d47a411b1b10421202af4fa441580fba152 Mon Sep 17 00:00:00 2001 From: Mischievous Meerkat Date: Wed, 1 May 2019 19:35:04 +0530 Subject: [PATCH] Revert "Add better Windows color support using colorama" --- buku | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/buku b/buku index dc19f01..1d604ae 100755 --- a/buku +++ b/buku @@ -4356,9 +4356,7 @@ def read_in(msg): disable_sigint_handler() message = None try: - # Delibrately dong this to better support Windows colorizing - print(msg, end='') - message = input() + message = input(msg) except KeyboardInterrupt: print('Interrupted.') @@ -4888,12 +4886,8 @@ POSITIONAL ARGUMENTS: # only ConEmu is supported. If the user does not use ConEmu, colors are # disabled unless --colors or %BUKU_COLORS% is specified. if sys.platform == 'win32' and os.environ.get('ConemuDir') is None: - try: - import colorama - colorama.init() - except ImportError: - if args.colorstr is None and colorstr_env is not None: - args.nc = True + if args.colorstr is None and colorstr_env is not None: + args.nc = True # Handle color output preference if args.nc: