On Thu, Jun 14, 2001 at 08:24:53PM +1000, Andy Eager wrote:
> Hi all,
>
> I've got some code which I want to be able to run from a console without
> using ncurses.
>
> Does anyone know if it's possible to have the up/down arrow keys return
> previous line entries (like it does in the shell) using fgets() or the
> like ?
Well, that functionality is provided by libreadline, but that in turn
uses ncurses...
> At the moment, I can do all the normal line editing stuff with backspace
> / del etc but an up arrow gives me ^[[A. (presumably scan code for
> up-arrow).
You'd basically have to look at the termcap/terminfo stuff to handle
up-arrow properly, I think.
Just curious, what's so bad about using ncurses?
-Andrew.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug