massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / colorama / colorama / win32.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/colorama/colorama/win32.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/colorama/colorama/win32.pyi
new file mode 100644 (file)
index 0000000..37e6a0b
--- /dev/null
@@ -0,0 +1,31 @@
+import sys
+from typing import Callable
+from typing_extensions import Literal
+
+STDOUT: Literal[-11]
+STDERR: Literal[-12]
+
+if sys.platform == "win32":
+    from ctypes import LibraryLoader, Structure, WinDLL, wintypes
+
+    windll: LibraryLoader[WinDLL]
+    COORD = wintypes._COORD
+    class CONSOLE_SCREEN_BUFFER_INFO(Structure):
+        dwSize: COORD
+        dwCursorPosition: COORD
+        wAttributes: wintypes.WORD
+        srWindow: wintypes.SMALL_RECT
+        dwMaximumWindowSize: COORD
+        def __str__(self) -> str: ...
+    def winapi_test() -> bool: ...
+    def GetConsoleScreenBufferInfo(stream_id: int = ...) -> CONSOLE_SCREEN_BUFFER_INFO: ...
+    def SetConsoleTextAttribute(stream_id: int, attrs: wintypes.WORD) -> wintypes.BOOL: ...
+    def SetConsoleCursorPosition(stream_id: int, position: COORD, adjust: bool = ...) -> wintypes.BOOL: ...
+    def FillConsoleOutputCharacter(stream_id: int, char: str, length: int, start: COORD) -> int: ...
+    def FillConsoleOutputAttribute(stream_id: int, attr: int, length: int, start: COORD) -> wintypes.BOOL: ...
+    def SetConsoleTitle(title: str) -> wintypes.BOOL: ...
+
+else:
+    windll: None
+    SetConsoleTextAttribute: Callable[..., None]
+    winapi_test: Callable[..., None]