2 from typing import Callable
3 from typing_extensions import Literal
8 if sys.platform == "win32":
9 from ctypes import LibraryLoader, Structure, WinDLL, wintypes
11 windll: LibraryLoader[WinDLL]
12 COORD = wintypes._COORD
13 class CONSOLE_SCREEN_BUFFER_INFO(Structure):
15 dwCursorPosition: COORD
16 wAttributes: wintypes.WORD
17 srWindow: wintypes.SMALL_RECT
18 dwMaximumWindowSize: COORD
19 def __str__(self) -> str: ...
20 def winapi_test() -> bool: ...
21 def GetConsoleScreenBufferInfo(stream_id: int = ...) -> CONSOLE_SCREEN_BUFFER_INFO: ...
22 def SetConsoleTextAttribute(stream_id: int, attrs: wintypes.WORD) -> wintypes.BOOL: ...
23 def SetConsoleCursorPosition(stream_id: int, position: COORD, adjust: bool = ...) -> wintypes.BOOL: ...
24 def FillConsoleOutputCharacter(stream_id: int, char: str, length: int, start: COORD) -> int: ...
25 def FillConsoleOutputAttribute(stream_id: int, attr: int, length: int, start: COORD) -> wintypes.BOOL: ...
26 def SetConsoleTitle(title: str) -> wintypes.BOOL: ...
30 SetConsoleTextAttribute: Callable[..., None]
31 winapi_test: Callable[..., None]