Support user's terminal settings for erase char and for kill char. Erase char is typically <delete> or <backspace>, both of which are already explicitly handled so probably no effect there. Kill char (generally ^U these days) will be honored unless it is a printable character (don't know whether there are any troglodytes out there who still use '@' for that...). The current handling for ESC works the same if there is any input to kill, but yields 'cancelled' when there isn't. That's for message window getline(), which operates char-by-char. The popup getline() uses a curses routine to get an entire string and already honors kill char but treats ESC as input of ^[.
12 KiB
12 KiB