[Top][All Lists]

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

Re: Problem with scroll in curses

From: Thomas Dickey
Subject: Re: Problem with scroll in curses
Date: Tue, 27 Apr 2004 12:46:18 -0400 (EDT)

On Sat, 24 Apr 2004, shivangi desai wrote:

> I found documentation stating that my screen will physically scroll on
> calling idlok but this does not happen.

Not exactly (perhaps the wording could be improved).  idlok() is used to
tell curses whether it can use the escape sequences for inserting or
deleting lines as part of the optimization.  Old terminals were sometimes
very slow when performing these operations.

scrollok() is closer to what you are saying, but the rest of the problem
report gives me the impression that you are misunderstanding what happens
when a terminal scrolls.  It shifts the text on the screen - but the text
that is shifted off the screen is lost.  A pad can represent a window
larger than the physical display, so it is suited for applications that
should not lose data from scrolling.

Thomas E. Dickey

reply via email to

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