rr- / urwid_readline

readline text edit for urwid
MIT License
27 stars 11 forks source link

Add placeholder text option in ReadlineEdit widget #17

Closed Ezio-Sarthak closed 3 years ago

Ezio-Sarthak commented 3 years ago

It would be of great help if we could have a placeholder text like parameter in the ReadlineEdit() class :)

neiljp commented 3 years ago

I will leave @rr- to respond, but this seems achievable independently of ReadlineEdit through setting appropriate callbacks, or perhaps writing a mixin class for edit boxes in general - though perhaps there are nuances with particular key combinations related to readline?

rr- commented 3 years ago

Yeah, to me it sounds like out of scope for this library as well

Ezio-Sarthak commented 3 years ago

Yeah. My bad :sweat_smile:. Modifying callback functions should be a basic solution for such an issue :)