diff --git a/buku b/buku index 140c1cf..3c12bfa 100755 --- a/buku +++ b/buku @@ -4323,7 +4323,9 @@ def read_in(msg): disable_sigint_handler() message = None try: - message = input(msg) + # Delibrately dong this to better support Windows colorizing + print(msg, end='') + message = input() except KeyboardInterrupt: print('Interrupted.') @@ -4853,8 +4855,12 @@ 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: - if args.colorstr is None and colorstr_env is not None: - args.nc = True + try: + import colorama + colorama.init() + except ImportError: + if args.colorstr is None and colorstr_env is not None: + args.nc = True # Handle color output preference if args.nc: