From a721d5253fa6570172b9836203bda3835df89d3f Mon Sep 17 00:00:00 2001 From: ibobalo Date: Tue, 1 Dec 2015 09:27:16 +0200 Subject: [PATCH] cosmetic: toolchain logs improved --- pythonforandroid/toolchain.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py index 3dbb16f9d7..be9229685e 100755 --- a/pythonforandroid/toolchain.py +++ b/pythonforandroid/toolchain.py @@ -204,11 +204,13 @@ def shprint(command, *args, **kwargs): logger.debug(''.join(['\t', line.rstrip()])) if need_closing_newline: sys.stdout.write('{}\r{:>{width}}\r'.format( - Style.RESET_ALL, ' ', width=(columns - 1))) + Err_Style.RESET_ALL, ' ', width=(columns - 1))) + sys.stdout.flush() except sh.ErrorReturnCode as err: if need_closing_newline: sys.stdout.write('{}\r{:>{width}}\r'.format( - Style.RESET_ALL, ' ', width=(columns - 1))) + Err_Style.RESET_ALL, ' ', width=(columns - 1))) + sys.stdout.flush() if tail_n or filter_in or filter_out: def printtail(out, name, forecolor, tail_n=0, re_filter_in=None, re_filter_out=None):