How does one refresh a terminal screen in SysV/386 curses ?

Conor P. Cahill cpcahil at virtech.uucp
Sun Feb 25 11:38:02 AEST 1990


In article <342 at ntpdvp1.UUCP> samc at ntpdvp1.UUCP (Sam Christie) writes:
>Dial up users find that noise really trashes the screen, so it
>would be nice to refresh it at a certain key stroke, say cntl-R.
>Since the entire application gets all input from one of two
>'C' functions, we would like to build the refresh logic into 
>those two places.  Does anyone know how to get curses to send its
>entire terminal buffer out ?

Either of the following should work:

1. Just touchwin() and wnoutrefresh() each window, followed by a doupdate().
   Of course, this requires the knowledge of what windows are on the screen.

2. scr_dump(/tmp/screen.[pid]),  followed by scr_restore(same_filename), 
   followed by doupdate()


-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.unix.questions mailing list