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
Importing the library pyroute2 breaks the Rich prompting. Accepting a default (by pressing enter) does not output a new line.
With pyroute2 imported:
Without pyroute2 imported:
Minimal reproducible code:
Snippet:
# pip install rich pyroute2fromrich.promptimportPromptimportpyroute2name=Prompt.ask("Enter your name", choices=["Paul", "Jessica", "Duncan"], default="Paul")
last=Prompt.ask("Enter your last name", default="Atreides")
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Linux Ubuntu 22.04, Kitty, but reproducible with gnome-terminal
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
As far as I can tell, the issue actually comes from importing readline here
Updated snippet
fromrich.promptimportPromptimportreadlinename=Prompt.ask("Enter your name", choices=["Paul", "Jessica", "Duncan"], default="Paul")
last=Prompt.ask("Enter your last name", default="Atreides")
gboutry
changed the title
[BUG] importing pyroute2 breaks rich prompt alignement
[BUG] importing readline breaks rich prompt alignement
Jun 9, 2023
Describe the bug
Importing the library
pyroute2
breaks the Rich prompting. Accepting a default (by pressing enter) does not output a new line.With pyroute2 imported:
Without pyroute2 imported:
Minimal reproducible code:
Snippet:
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Linux Ubuntu 22.04, Kitty, but reproducible with gnome-terminal
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If you're using Rich in a terminal:
The text was updated successfully, but these errors were encountered: