You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you checked the issues for similar suggestions.
I believe the docs (and the community in general) would benefit a lot from having some basic guidelines on how to use the standard readline module with Rich. It's a single import after all.
What problem does it solve for you?
Without readline (weird stuff are the result of arrow keys):
With readline:
How would you improve Rich?
It turns out there's no need to change a single line in Rich, just mention it in the docs (such as here):
fromrich.consoleimportConsoleimportreadline# just add thisconsole=Console()
console.input("What is [i]your[/i] [bold red]name[/]? :smiley: ")
I believe the docs (and the community in general) would benefit a lot from having some basic guidelines on how to use the standard readline module with Rich. It's a single import after all.
What problem does it solve for you?
Without
readline
(weird stuff are the result of arrow keys):With
readline
:How would you improve Rich?
It turns out there's no need to change a single line in Rich, just mention it in the docs (such as here):
The reason I think it is useful is because
import readline
)The text was updated successfully, but these errors were encountered: