Replies: 3 comments 2 replies
|
Coincidentally, it looks like a PR adding a similar option for Python's I'm not sure Rich is accepting new features now, but maybe this could be added without disruptive impact on the API? |
2 replies
|
I would appreciate this to be implemented by rich. Any devs have an opinion on this? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
One of the annoying things with hidden password input is that you sometimes stumble and then are not sure how many chars you have entered yet, or if you want to start over hit backspace often enough etc.
Generally at least for me it feels like a nicer interaction if there is a character displayed for every keystroke.
For that purpose I wrote me some contraption using readchar but it feels like it would also fit into rich.prompt and rich.console.input much nicer.
PS: For the case of adopting single char input one could also imagine adapting rich.prompt so that it can update the prompt based on the contents, like on many web forms where it says "password too short" or "must contain XYZ" using some user defined callbacks/callables
All reactions