MCPcopy Index your code
hub / github.com/RustPython/RustPython / _getscrollbacksize

Method _getscrollbacksize

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

Source from the content-addressed store, hash-verified

365 )
366
367 def _getscrollbacksize(self) -> int:
368 info = CONSOLE_SCREEN_BUFFER_INFO()
369 if not GetConsoleScreenBufferInfo(OutHandle, info):
370 raise WinError(GetLastError())
371
372 return info.srWindow.Bottom # type: ignore[no-any-return]
373
374 def _read_input(self, block: bool = True) -> INPUT_RECORD | None:
375 if not block:

Callers 1

refreshMethod · 0.95

Calls 3

WinErrorFunction · 0.90
GetLastErrorFunction · 0.70

Tested by

no test coverage detected