home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR19
/
SNIP0693.ZIP
/
WINSAVE.PRG
< prev
Wrap
Text File
|
1993-03-13
|
747b
|
23 lines
#translate winsave([ < color > ] [ , < cursor > ] ) => ;
{ savescreen() , ;
setcolor( [ < color > ] ) , ;
row() , ;
col() , ;
setcursor( [ < cursor > ] ) }
#translate winrest( <Array> ) => ;
( setcolor( <Array>\[2\]) , ;
restscreen(0,0,24,79,<Array>\[1\]) , ;
setpos(<Array>\[3\],<Array>\[4\]) , ;
setcursor(<Array>\[5\]) )
func main
Local Winbuff := Winsave('b/g,g/b',0)
// app
Winrest( Winbuff )
Quit
// THE most elegant solution is to save it all and restore it all.
// Gives a very nice feel to the app.