2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 18:07:12 +01:00

(keep the -1 in ansiterm for now)

This commit is contained in:
Thomas Nagy 2014-01-25 20:26:11 +01:00
parent 1b534ee8d2
commit 564c4c1a60

View File

@ -294,7 +294,8 @@ else:
sbinfo = CONSOLE_SCREEN_BUFFER_INFO() sbinfo = CONSOLE_SCREEN_BUFFER_INFO()
def get_term_cols(): def get_term_cols():
windll.kernel32.GetConsoleScreenBufferInfo(console, byref(sbinfo)) windll.kernel32.GetConsoleScreenBufferInfo(console, byref(sbinfo))
return sbinfo.Size.X # TODO Issue 1401
return sbinfo.Size.X - 1
# just try and see # just try and see
try: try: