bug-ncurses
[Top][All Lists]
Advanced

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

Re: how i do the Page up effect


From: Thomas Dickey
Subject: Re: how i do the Page up effect
Date: Thu, 20 Mar 2003 17:42:11 -0500
User-agent: Mutt/1.3.27i

On Wed, Mar 19, 2003 at 08:03:12PM +0000, Senyakhaz wrote:
> Hi. I'm sorry about my english.
> I want to make a window that a user presses Page Up (or any key) and 
> shows the past lines like in BitchX that we press Page Up and show the 
> lines that disappeared in the screen.
> Thanks

windows don't do that by themselves: you can make a pad (like a viewport
into a very large window) - there's an example of that in test/ncurses.c

normally one uses curses to scroll the window, and then use addstr or
something like that to paint lines of text on the exposed area.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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