From c395bffed8a4ad1df165035f81e0de9c3dff1bee Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 25 Jan 2014 02:02:28 +0100 Subject: [PATCH] Workaround for Issue 1401 - the progress bar cannot display the last character on windows --- waflib/Logs.py | 2 +- waflib/ansiterm.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/waflib/Logs.py b/waflib/Logs.py index 96ae92dd..2ea4c064 100644 --- a/waflib/Logs.py +++ b/waflib/Logs.py @@ -40,7 +40,7 @@ colors_lst = { 'cursor_off' :'\x1b[?25l', } -indicator = '\x1b[K%s%s%s\r' +indicator = '\r\x1b[K%s%s%s' def enable_colors(use): if use == 1: diff --git a/waflib/ansiterm.py b/waflib/ansiterm.py index e8cc3499..97e4c44c 100644 --- a/waflib/ansiterm.py +++ b/waflib/ansiterm.py @@ -294,7 +294,8 @@ else: sbinfo = CONSOLE_SCREEN_BUFFER_INFO() def get_term_cols(): windll.kernel32.GetConsoleScreenBufferInfo(console, byref(sbinfo)) - return sbinfo.Size.X + # TODO Issue 1401 + return sbinfo.Size.X - 1 # just try and see try: