-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] importing readline breaks rich prompt alignement #2994
Labels
Comments
As far as I can tell, the issue actually comes from importing readline here Updated snippet from rich.prompt import Prompt
import readline
name = 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
Meet same issue here. When using I'm using ITerm2, zsh. Test code:
Then just press enter. Output:
|
paperplane110
added a commit
to paperplane110/rich
that referenced
this issue
Nov 11, 2024
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: