Read password with echo character and line editing support.
(stream, input, echo_char, term_ctrl_chars=None,
prompt="")
| 240 | |
| 241 | |
| 242 | def _readline_with_echo_char(stream, input, echo_char, term_ctrl_chars=None, |
| 243 | prompt=""): |
| 244 | """Read password with echo character and line editing support.""" |
| 245 | if term_ctrl_chars is None: |
| 246 | term_ctrl_chars = _POSIX_CTRL_CHARS |
| 247 | |
| 248 | editor = _PasswordLineEditor(stream, echo_char, term_ctrl_chars, prompt) |
| 249 | return editor.readline(input) |
| 250 | |
| 251 | |
| 252 | class _PasswordLineEditor: |
no test coverage detected
searching dependent graphs…