On 2/17/15 8:20 AM, Ulf Magnusson wrote:
> I currently have readline reading directly from the TTY. I think this
> will get messy, so I want to handle input and other terminal
> operations exclusively with ncurses (using e.g. getch()) and forward
> the appropriate characters to readline. Is the following an okay
> approach? Will it correctly handle e.g. timeouts?

This approach should work, as long as you're replacing both the function
to read input and the function that says whether input is available.
You may wish to consider handling timeouts to differentiate between
possibly-ambiguous key sequences.

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

Reply via email to