redraw screen using curses

David Elliott dce at stan.UUCP
Mon Jan 30 06:17:36 AEST 1989


In article <31631 at vax1.tcd.ie> jlooi at vax1.tcd.ie writes:
>Does anyone know how to redraw the screen using curses?
>I've tried :
>	wrefresh(curscr);
>It works but the screen is sometimes screwed up slightly.

What do you mean by "sometimes" and "screwed up slightly"?
Let me be more specific:

1. Does this happen only under your curses program, or under things like
   vi and emacs as well?

2. Does it always look "screwed up" the same way?

3. Does it happen at any baud rate?

The reason I ask is that this could be related to flow control (XON/XOFF)
or to padding.

If you answered no to number 3, try modifying your termcap or terminfo
entry to have a big pad (as much as 50ms) for the "clear screen" entry.
Some terminals require some time to "get organized" after clearing
the screen.

-- 
David Elliott		...!pyramid!boulder!stan!dce
"All he wanted was a Pepsi, but I wouldn't give it to him!" -- Mike's mom



More information about the Comp.unix.questions mailing list