bug-ncurses
[Top][All Lists]
Advanced

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

Re: Screen buffer on scrolling?


From: Bryan Christ
Subject: Re: Screen buffer on scrolling?
Date: Mon, 28 Apr 2008 14:14:59 -0500

On Sun, 2008-04-27 at 23:34 +0000, 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?

yes.  you will have to write your own buffer mechanism to handle the
scrolling.  an easy way to do this is to create a large, offscreen
window, using newpad(), and then just use copywin() to handle the
scrolling yourself.

> 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?
> --
> View this message in context: 
> http://www.nabble.com/Screen-buffer-on-scrolling--tp16929822p16929822.html
> Sent from the Gnu - Ncurses mailing list archive at Nabble.com.
> 
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-ncurses





reply via email to

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