Less Optimized Curses

Torkel Hasle torkel at bibsyst.UUCP
Thu Nov 15 08:36:00 AEST 1990


In article <1990Nov13.090732 at mathcs.emory.edu> km at mathcs.emory.edu (Ken Mandelberg) writes:
>This is an expansion on a problem I posted earlier about curses screen
>update optimization. The issue concerns how clever curses is in updating
>a screen to a new screen whoose contents are vertically displaced one
>line. What I notice is that almost all versions of curses don't notice
>the relationshsip between the screens, and repaint everything. One version
>of curses does notice the relationship, and updates the screen using
>scrolling.
>

If you add the following line after initscr(), curses will use
hardware scrolling:

	idlok(stdscr,TRUE);

This is documented in the SVID issue 2.  Your example ran with
hardware scrolling on my machine (SVR3.1) when I added this line.

+----------------------------------------------------------------------+
!   Torkel Hasle, Bibliotek-Systemer A/S, N-3250 Larvik, Norway        !
!   uucp: ...nuug!bibsyst!torkel        Tel: +47 34 82 202             !
!            torkel at bibsyst.uucp        Fax: +47 34 85 185             !
+----------------------------------------------------------------------+



More information about the Comp.unix.questions mailing list