Re: screen refresh

From: Thomas E. Dickey <>
Date: Thu, 29 May 1997 08:20:03 -0400 (EDT)

> > I've been using
> >
> > touchwin(stdscr); wrefresh(curscr);
> >
> > for sysv versions, and a hack with the clearok for bsd versions.
> Ok, I was wrong. I did not know the special action of 'wrefresh(curscr)'.
> If the win argument to wrefresh() is the global variable
> curscr, the screen is immediately cleared and repainted from
> scratch.
> But then, why touchwin(stdscr) is needed?
I honestly don't remember (probably overkill). I knew about the curscr
hack from experimentation (and because it was broken in ncurses a couple of
years ago ;-).

In any case, I'll have to come up with a workable hack for bsd curses
since I want to be able to benchmark my directory editor on different flavors
of curses. (I had a workaround for the broken touchwin that worked on the
bsd4.3 curses on Apollo, but it can't defeat the bsd4.4 bug - though there's
more than one version of _that_ - the one I've on Linux works ok, but the
one on FreeBSD as well as the one on BSDI is broken).

Thomas E. Dickey
Received on Thu May 29 1997 - 08:20:03 EDT

This archive was generated by hypermail 2.2.0 : Mon Dec 19 2011 - 06:24:16 EST