()
| 200 | raise Exception |
| 201 | |
| 202 | def get_char(): |
| 203 | while msvcrt.kbhit(): |
| 204 | msvcrt.getch() |
| 205 | func = False |
| 206 | char = msvcrt.getch() |
| 207 | if char in ('\x00', '\xE0'): |
| 208 | func = True |
| 209 | while func: |
| 210 | msvcrt.getch() |
| 211 | func = False |
| 212 | char = msvcrt.getch() |
| 213 | if char in ('\x00', '\xE0'): |
| 214 | func = True |
| 215 | return char.replace('\r', '\n') |
| 216 | |
| 217 | def get_int(): |
| 218 | while msvcrt.kbhit(): |