[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: readline-like program
From: |
James Strother |
Subject: |
Re: readline-like program |
Date: |
Fri, 14 Jan 2005 14:42:42 -0800 |
User-agent: |
Mutt/1.4.1i |
Thanks for all of the helpful suggestions!
On Thu, Jan 13, 2005 at 09:11:53PM -0500, Thomas Dickey wrote:
> On Thu, 13 Jan 2005, James Strother wrote:
>
> >This sets the WINDOW size to the physical screen size, which is not
> >what I want. I want the rest of the terminal to be unaffected with
> >just a single terminal-input line at the end. I tried (and tried..)
> >various combinations of setupterm and newwin, but I couldn't quite
> >get it to work. Is there a "curses" way to do this or am I stuck
> >using termcap?
>
> Generally curses deals with full-screen stuff (in part because some
> terminals used to behave radically different in full-screen vs
> command-line). It does implement a function "filter()", which tells
> ncurses to limit itself to a single line. There's an example in the
> ncurses sources (test/filter.c) which demonstrates this.
>
> --
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net