bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] [PING] Fix mingw support for Home, End, Insert and De


From: Chet Ramey
Subject: Re: [Bug-readline] [PING] Fix mingw support for Home, End, Insert and Delete keys
Date: Mon, 23 Sep 2013 08:23:13 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]