(self, block: bool = True)
| 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: |
| 376 | events = DWORD() |
| 377 | if not GetNumberOfConsoleInputEvents(InHandle, events): |
| 378 | raise WinError(GetLastError()) |
| 379 | if not events.value: |
| 380 | return None |
| 381 | |
| 382 | rec = INPUT_RECORD() |
| 383 | read = DWORD() |
| 384 | if not ReadConsoleInput(InHandle, rec, 1, read): |
| 385 | raise WinError(GetLastError()) |
| 386 | |
| 387 | return rec |
| 388 | |
| 389 | def get_event(self, block: bool = True) -> Event | None: |
| 390 | """Return an Event instance. Returns None if |block| is false |
no test coverage detected