(prompt: str | None = None)
| 473 | |
| 474 | @_pause_echo(echo_input) # type: ignore |
| 475 | def visible_input(prompt: str | None = None) -> str: |
| 476 | sys.stdout.write(prompt or "") |
| 477 | try: |
| 478 | val = next(text_input).rstrip("\r\n") |
| 479 | except StopIteration as e: |
| 480 | raise EOFError() from e |
| 481 | sys.stdout.write(f"{val}\n") |
| 482 | sys.stdout.flush() |
| 483 | return val |
| 484 | |
| 485 | @_pause_echo(echo_input) # type: ignore |
| 486 | def hidden_input(prompt: str | None = None) -> str: |