On 9/22/13 4:55 PM, Pierre Muller wrote:
>
> It doesn't fix the problem of the numeric keypad uses with NumKey Off...
> Because those generate a prefix with code 0x0,
> but as readline uses zero terminated string for key sequences...
> I don't know how I could handle those correctly!
>
> Could you think of a possible way to support such prefixes?
Since readline uses C strings to store key bindings, it's very difficult,
as you observed, to have bindings whose value includes NUL. The only way
to support such prefixes is to invent some other encoding that maps NUL to
some other character, but that's difficult to do without knowing all the
other characters that might possibly appear in an escape sequence.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline