rich icon indicating copy to clipboard operation
rich copied to clipboard

[REQUEST] Colored User Input

Open j0yk1ll opened this issue 1 year ago • 4 comments

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.

j0yk1ll avatar Jun 01 '24 01:06 j0yk1ll

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

github-actions[bot] avatar Jun 01 '24 01:06 github-actions[bot]

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.

goodglitch avatar Jul 31 '24 06:07 goodglitch

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.

j0yk1ll avatar Jul 31 '24 11:07 j0yk1ll

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 https://github.com/Textualize/rich/issues/3369#issuecomment-2260252448, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALXLD3FAE4OUVGLNMDTP6ALZPC767AVCNFSM6AAAAABITWH6WWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRQGI2TENBUHA . You are receiving this because you commented.Message ID: @.***>

goodglitch avatar Aug 01 '24 05:08 goodglitch