bug-ncurses
[Top][All Lists]
Advanced

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

Combining ncurses and GNU readline (follow-up with example code)


From: Ulf Magnusson
Subject: Combining ncurses and GNU readline (follow-up with example code)
Date: Thu, 26 Feb 2015 07:33:47 +0100

Hello,

(I originally meant to post this as a reply to
http://lists.gnu.org/archive/html/bug-ncurses/2010-10/msg00041.html,
but it'd require some messing about with headers since I was not
subscribed to the mailing list then.)

There seems to be a dearth of simple examples in this area. One of the
trickier aspects is that readline does not export its cursor position,
meaning you have to do some manual work to get it right for special
characters.

I've put together a simple example at
https://github.com/ulfalizer/readline-and-ncurses. I'll work it into a
more classical select loop for another project later. Constructive
criticism welcome!

/Ulf



reply via email to

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