(string: str)
| 38 | |
| 39 | |
| 40 | def print_over_input(string: str) -> None: |
| 41 | sys.stdout.write( |
| 42 | # Move cursor to beginning of line |
| 43 | "\N{CARRIAGE RETURN}" |
| 44 | # Delete current line |
| 45 | "\N{ESC}[K" |
| 46 | # Print string |
| 47 | f"{string}\N{LINE FEED}" |
| 48 | ) |
| 49 | sys.stdout.flush() |
| 50 | |
| 51 | |
| 52 | class ReadLines(asyncio.Protocol): |
no test coverage detected
searching dependent graphs…