5 def code_to_chars(code: int) -> str: ...
6 def set_title(title: str) -> str: ...
7 def clear_screen(mode: int = ...) -> str: ...
8 def clear_line(mode: int = ...) -> str: ...
11 def __init__(self) -> None: ...
14 def UP(self, n: int = ...) -> str: ...
15 def DOWN(self, n: int = ...) -> str: ...
16 def FORWARD(self, n: int = ...) -> str: ...
17 def BACK(self, n: int = ...) -> str: ...
18 def POS(self, x: int = ..., y: int = ...) -> str: ...
20 # All attributes in the following classes are string in instances and int in the class.
21 # We use str since that is the common case for users.
22 class AnsiFore(AnsiCodes):
32 LIGHTBLACK_EX: str = ...
33 LIGHTRED_EX: str = ...
34 LIGHTGREEN_EX: str = ...
35 LIGHTYELLOW_EX: str = ...
36 LIGHTBLUE_EX: str = ...
37 LIGHTMAGENTA_EX: str = ...
38 LIGHTCYAN_EX: str = ...
39 LIGHTWHITE_EX: str = ...
41 class AnsiBack(AnsiCodes):
51 LIGHTBLACK_EX: str = ...
52 LIGHTRED_EX: str = ...
53 LIGHTGREEN_EX: str = ...
54 LIGHTYELLOW_EX: str = ...
55 LIGHTBLUE_EX: str = ...
56 LIGHTMAGENTA_EX: str = ...
57 LIGHTCYAN_EX: str = ...
58 LIGHTWHITE_EX: str = ...
60 class AnsiStyle(AnsiCodes):