-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[REQUEST] Colored User Input #3369
Comments
I am new to this library and thought that I just can't find this feature, but it looks like it is missing. So +1 for colored text input. |
Hey, the way I solved it was by using ANSI escape sequences. Initially it worked partially but there was some limitation in combination with rich but in the end I got it working, so I can say it's certainly possible, but I don't have the code anymore, so unfortunately I can't give you the exact solution. I hope this helps you towards a solution. |
Thanks! I will try escape sequences.
…On Wed, Jul 31, 2024, 14:03 j0yk1ll ***@***.***> wrote:
I am new to this library and thought that I just can't find this feature,
but it looks like it is missing. So +1 for colored text input.
Hey, the way I solved it was by using ANSI escape sequences.
Initially it worked partially but there was some limitation in combination
with rich but in the end I got it working, so I can say it's certainly
possible, but I don't have the code anymore, so unfortunately I can't give
you the exact solution.
But I hope the pointer helps you towards a solution.
—
Reply to this email directly, view it on GitHub
<#3369 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALXLD3FAE4OUVGLNMDTP6ALZPC767AVCNFSM6AAAAABITWH6WWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRQGI2TENBUHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
How would you improve Rich?
It would be nice to be able to color the user input as well. There currently doesn't seem to be an option for that.
What problem does it solve for you?
It gives more control over styling. In prompt_toolkit it's possible, but I don't want to use the additional overhead.
The text was updated successfully, but these errors were encountered: