| 115 | |
| 116 | |
| 117 | class FakeConsole(Console): |
| 118 | def __init__(self, events, encoding="utf-8") -> None: |
| 119 | self.events = iter(events) |
| 120 | self.encoding = encoding |
| 121 | self.screen = [] |
| 122 | self.height = 100 |
| 123 | self.width = 80 |
| 124 | |
| 125 | def get_event(self, block: bool = True) -> Event | None: |
| 126 | return next(self.events) |
| 127 | |
| 128 | def getpending(self) -> Event: |
| 129 | return self.get_event(block=False) |
| 130 | |
| 131 | def getheightwidth(self) -> tuple[int, int]: |
| 132 | return self.height, self.width |
| 133 | |
| 134 | def refresh(self, screen: list[str], xy: tuple[int, int]) -> None: |
| 135 | pass |
| 136 | |
| 137 | def prepare(self) -> None: |
| 138 | pass |
| 139 | |
| 140 | def restore(self) -> None: |
| 141 | pass |
| 142 | |
| 143 | def move_cursor(self, x: int, y: int) -> None: |
| 144 | pass |
| 145 | |
| 146 | def set_cursor_vis(self, visible: bool) -> None: |
| 147 | pass |
| 148 | |
| 149 | def push_char(self, char: int | bytes) -> None: |
| 150 | pass |
| 151 | |
| 152 | def beep(self) -> None: |
| 153 | pass |
| 154 | |
| 155 | def clear(self) -> None: |
| 156 | pass |
| 157 | |
| 158 | def finish(self) -> None: |
| 159 | pass |
| 160 | |
| 161 | def flushoutput(self) -> None: |
| 162 | pass |
| 163 | |
| 164 | def forgetinput(self) -> None: |
| 165 | pass |
| 166 | |
| 167 | def wait(self, timeout: float | None = None) -> bool: |
| 168 | return True |
| 169 | |
| 170 | def repaint(self) -> None: |
| 171 | pass |
no outgoing calls
searching dependent graphs…