terminalwriter: remove custom win32 screen width code

Python 3 does this on its own so we can use the shared code:
bcf2b59fb5
This commit is contained in:
Ran Benita 2020-04-29 16:37:38 +03:00
parent 1d596b27a7
commit c749e44efc
1 changed files with 0 additions and 7 deletions

View File

@ -415,13 +415,6 @@ if win32_and_ctypes:
_GetConsoleScreenBufferInfo(handle, ctypes.byref(info))
return info
def _getdimensions(): # noqa: F811
handle = GetStdHandle(STD_OUTPUT_HANDLE)
info = GetConsoleInfo(handle)
# Substract one from the width, otherwise the cursor wraps
# and the ending \n causes an empty line to display.
return info.dwSize.Y, info.dwSize.X - 1
def write_out(fil, msg):
# XXX sometimes "msg" is of type bytes, sometimes text which