|
From: | Thomas Dickey |
Subject: | Re: how to have the `initscr '() do NOT clear the screen? |
Date: | Mon, 7 Jul 2008 07:01:59 -0400 (EDT) |
On Sat, 5 Jul 2008, jianghu wrote:
I'd like the initscr() to keep current screen, i.e. when the program using curses library is injected in terminal and the terminal keeps unchanged. The user will not aware of that there is a curses library is called. But I can still use the curses's functions to do some interesting things, for example the program using curses draw a toolbar at the top of the terminal showing some hints (stock info, news, etc) but the user can still use its bash to do his work/development. Who can tell me how to do it? Thanks a lot.
The 'filter()' function lets you use curses as a single-line. For the rest - curses won't do that since (to work on _all_ terminals) the assumption was made long ago that the terminal has to be cleared to know what's on the screen.
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |