MCPcopy Index your code
hub / github.com/python/cpython / _getscrollbacksize

Method _getscrollbacksize

Lib/_pyrepl/windows_console.py:399–404  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

397 )
398
399 def _getscrollbacksize(self) -> int:
400 info = CONSOLE_SCREEN_BUFFER_INFO()
401 if not GetConsoleScreenBufferInfo(OutHandle, info):
402 raise WinError(get_last_error())
403
404 return info.srWindow.Bottom # type: ignore[no-any-return]
405
406 def _read_input(self) -> INPUT_RECORD | None:
407 rec = INPUT_RECORD()

Callers 1

refreshMethod · 0.95

Calls 3

WinErrorFunction · 0.90
get_last_errorFunction · 0.85

Tested by

no test coverage detected