Show More
@@ -352,7 +352,7 b' def termwidth():' | |||||
352 | # counted in the line length. On 80 columns consoles, if 80 |
|
352 | # counted in the line length. On 80 columns consoles, if 80 | |
353 | # characters are written, the following CR won't apply on the |
|
353 | # characters are written, the following CR won't apply on the | |
354 | # current line but on the new one. Keep room for it. |
|
354 | # current line but on the new one. Keep room for it. | |
355 |
width = |
|
355 | width = 80 - 1 | |
356 | # Query stderr to avoid problems with redirections |
|
356 | # Query stderr to avoid problems with redirections | |
357 | screenbuf = _kernel32.GetStdHandle( |
|
357 | screenbuf = _kernel32.GetStdHandle( | |
358 | _STD_ERROR_HANDLE) # don't close the handle returned |
|
358 | _STD_ERROR_HANDLE) # don't close the handle returned | |
@@ -362,7 +362,7 b' def termwidth():' | |||||
362 | if not _kernel32.GetConsoleScreenBufferInfo( |
|
362 | if not _kernel32.GetConsoleScreenBufferInfo( | |
363 | screenbuf, ctypes.byref(csbi)): |
|
363 | screenbuf, ctypes.byref(csbi)): | |
364 | return width |
|
364 | return width | |
365 | width = csbi.srWindow.Right - csbi.srWindow.Left |
|
365 | width = csbi.srWindow.Right - csbi.srWindow.Left # don't '+ 1' | |
366 | return width |
|
366 | return width | |
367 |
|
367 | |||
368 | def _1stchild(pid): |
|
368 | def _1stchild(pid): |
General Comments 0
You need to be logged in to leave comments.
Login now