home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boldly Go Collection
/
version40.iso
/
TS
/
05B
/
TFTB.ZIP
/
BLANK.SLT
< prev
next >
Wrap
Text File
|
1992-04-24
|
4KB
|
74 lines
////////////////////////////////////////////////////////////
// PROGRAM: BLANK.SLT //
// AUTHOR: Christopher Saunders //
// DATE: April 25th 1992 //
// //
// INFORMATION //
// ~~~~~~~~~~~ //
// This is a screen blanking script for Telix. Use it to //
// blank your screen if you are going to be away for a //
// long period of time. It is especially useful in case //
// there are any nosey people around, and you don't want //
// them to see what you are up to! //
// //
// Pressing the space bar will return you to Telix. //
////////////////////////////////////////////////////////////
main()
{
int chr, inchr, done, vhandle_1;
vhandle_1 = vsavearea(0, 0, 80, 25); // Save original screen
cursor_onoff(0); // Disable cursor
// box(0, 0, 80, 25, 0, 15);
//Prints blank screen
pstraxy(" ",0,1,15);
pstraxy(" ",0,2,15);
pstraxy(" ",0,3,15);
pstraxy(" ",0,4,15);
pstraxy(" ",0,5,15);
pstraxy(" ",0,6,15);
pstraxy(" ",0,7,15);
pstraxy(" ",0,8,15);
pstraxy(" ",0,9,15);
pstraxy(" ",0,10,15);
pstraxy(" ",0,11,15);
pstraxy(" ",0,12,15);
pstraxy(" ",0,13,15);
pstraxy(" ",0,14,15);
pstraxy(" ",0,15,15);
pstraxy(" ",0,16,15);
pstraxy(" ",0,17,15);
pstraxy(" ",0,18,15);
pstraxy(" ",0,19,15);
pstraxy(" ",0,20,15);
pstraxy(" ",0,21,15);
pstraxy(" ",0,22,15);
pstraxy(" ",0,23,15);
pstraxy(" ",0,24,15);
pstraxy(" ",0,25,15);
// End of blank screen
_scr_chk_key = 0; // Disable ESC checking
while(not done)
{
inchr = inkeyw(); // Wait for input from keyboard
if(inchr == 32) // F1
done = 1;
}
_scr_chk_key = 1; // Enable ESC checking
cursor_onoff(1); // Enable cursor
vrstrarea(vhandle_1); // Restore original screen
}