massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / colorama / colorama / win32.pyi
1 import sys
2 from typing import Callable
3 from typing_extensions import Literal
4
5 STDOUT: Literal[-11]
6 STDERR: Literal[-12]
7
8 if sys.platform == "win32":
9     from ctypes import LibraryLoader, Structure, WinDLL, wintypes
10
11     windll: LibraryLoader[WinDLL]
12     COORD = wintypes._COORD
13     class CONSOLE_SCREEN_BUFFER_INFO(Structure):
14         dwSize: COORD
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: ...
27
28 else:
29     windll: None
30     SetConsoleTextAttribute: Callable[..., None]
31     winapi_test: Callable[..., None]