[Tutor] Using the curses module (or a better solution)
Alan Gauld
alan.gauld at btinternet.com
Tue Oct 7 10:27:30 CEST 2008
"Tony Cappellini" <cappy2112 at gmail.com> wrote
> I'd like to add a 1-2 line no-scroll-area at the top of the screen,
> so as to
> print a message which indicates the progress of the current test.
>
> ....I'm not sure if the curses module has this non-scroll area
> capability.
Yes, curses works by defining viewport windows on the character
screen. Thus you can define two windows, one for the scrolling text
(and add a scrollbar to bring it back if needed) and one for the fixed
display.
There are some wrappers around curses to make the learning
curve a little bit less steep. Although, personally I don't think
raw curses is all that hard... :-)
Alan G.
More information about the Tutor
mailing list