[Top][All Lists]

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

Re: Screen buffer on scrolling?

From: Thomas Dickey
Subject: Re: Screen buffer on scrolling?
Date: Mon, 28 Apr 2008 07:51:44 -0400 (EDT)

On Sun, 27 Apr 2008, Mar15 wrote:

I am using ncurses for the first time and I have encountered a problem which
I don' know how to solve:
I enabled scrolling in my application with scrollok() but I noticed that
whenever some text is added so that it should be scrolled the first (upper)
lines which go out of scope disappear completely and not visible any more
when I scroll back in console window (putty for example). Is there some way
in ncurses to keep those lines when the user scrolls back or do I have to
add my own implementation in order to save them?

Generally your application saves the data. You can use a pad rather than a window to hold data, but that is 'limited' to 32,767 lines/columns (since the normal representation for the data uses a signed short).

And another question which is related to it: when application closed is
there some way to keep the output from the application visible in console
window just like normal output of command line application?

that depends on the terminal - dialog uses special knowledge of ncurses and xterm to do this.

Thomas E. Dickey

reply via email to

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