mirror of https://gitlab.com/ita1024/waf.git
Workaround for Issue 1401 - the progress bar cannot display the last character on windows
This commit is contained in:
parent
d413616400
commit
c395bffed8
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue