Method
hidden_input
(prompt: str | None = None)
Source from the content-addressed store, hash-verified
| 205 | return val |
| 206 | |
| 207 | def hidden_input(prompt: str | None = None) -> str: |
| 208 | sys.stdout.write(f"{prompt or ''}\n") |
| 209 | sys.stdout.flush() |
| 210 | try: |
| 211 | return next(text_input).rstrip("\r\n") |
| 212 | except StopIteration as e: # pragma: no cover |
| 213 | raise EOFError() from e |
| 214 | |
| 215 | def _getchar(echo: bool) -> str: |
| 216 | char = sys.stdin.read(1) |
Callers
nothing calls this directly
Tested by
no test coverage detected