It would be very useful to have a callback (or similar) to make it possible to override some key behaviours as well as trap other keys.
For example, I would like to disable Ctrl-L from rewriting the screen empty.
It would also be very useful to be able to trap a key combinations and do other things - for example trap a Ctrl- to make the application do something completely different, and just cancel the prompt at that point.
Probably the same feature could be used for both those, as long as there can be a return value that specifies "do what you would normally do", "ignore this key" or "abort the prompt at this stage".
It would be very useful to have a callback (or similar) to make it possible to override some key behaviours as well as trap other keys.
For example, I would like to disable Ctrl-L from rewriting the screen empty.
It would also be very useful to be able to trap a key combinations and do other things - for example trap a Ctrl- to make the application do something completely different, and just cancel the prompt at that point.
Probably the same feature could be used for both those, as long as there can be a return value that specifies "do what you would normally do", "ignore this key" or "abort the prompt at this stage".