(prompt: str | None = None)
| 484 | |
| 485 | @_pause_echo(echo_input) # type: ignore |
| 486 | def hidden_input(prompt: str | None = None) -> str: |
| 487 | sys.stdout.write(f"{prompt or ''}\n") |
| 488 | sys.stdout.flush() |
| 489 | try: |
| 490 | return next(text_input).rstrip("\r\n") |
| 491 | except StopIteration as e: |
| 492 | raise EOFError() from e |
| 493 | |
| 494 | @_pause_echo(echo_input) # type: ignore |
| 495 | def _getchar(echo: bool) -> str: |