On 9/18/16 9:45 AM, Nuzhna Pomoshch wrote:
> Reported this in 201507:
It's not all that mysterious. Your DEL key outputs the key sequence
"^[[3~" (ESC, [, 3, ~). That key sequence isn't bound to anything by
If readline finds the string assigned to the termcap `kD' (terminfo
`kdch1') capability, it will bind it to delete-char, but it doesn't appear
that this is the case on your system. It's done this since at least
Your erase key is ^H. I presume that's what the erase/rubout key on
your keyboard produces.
When you press DEL, it outputs the key sequence above. The sequence
isn't bound to anything, so each character is treated separately. The
ESC takes you into vi command mode, the `[' is unbound, the `3' introduces
a digit argument, and the ~ command toggles case.
If the version of readline-6.2 released by your vendor binds that sequence
to delete-char, you'll get the behavior you observe.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/
Bug-readline mailing list