bug-ncurses
[Top][All Lists]
Advanced

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

Re: readline-like program


From: Thomas Dickey
Subject: Re: readline-like program
Date: Thu, 13 Jan 2005 21:11:53 -0500 (EST)

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




reply via email to

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