home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR10
/
TLXTW110.ZIP
/
HANGUP.SLT
< prev
next >
Wrap
Text File
|
1993-08-22
|
2KB
|
80 lines
int flag = 0, statline, statline_color, h, i, Len, x, y;
str bbsname[15], c[64];
main()
{
flushbuf();
_scr_chk_key = 0;
_back_color = 0;
_fore_color = 7;
// reset script directory
_script_dir = "c:\telix\work\slc\"; //
//////////////////////////////////////////////////////////////////////////////
// _down_dir="c:\telix\work\dl\"; // reset download dir
i = keyload("telix.key"); // reload default .key file
if ( i != -1 ) printsc("^M^JTelix.key loaded." );
printsc("^M^JScript directory: ");
printsc( _script_dir );
prints("");
update_term();
newdir(_telix_dir);
x=getx(); y=gety();
if (chk_stat(0) == -1)
chk_stat(24);
pstraxy(" │", 0, statline, statline_color);
gotoxy(x,y);
if ( capture_stat() == 1 || capture_stat() == 2 )
{
subchrs(_capture_fname, 0, strlen(_capture_fname), c); strcat(c, " closed");
Len = 40 - strlen(c) / 2 ;
capture ( "*close*" );
h = vsavearea(Len - 4, 15, Len + strlen(c) + 3, 17);
box(Len - 4, 15, Len + strlen(c) + 3, 17, 3 ,0 ,31);
pstraxy( c, Len, 16, 30);
}
///////////////////////////////////////////////////////////////////////////////
// reset default capture file name
_capture_fname = "d:\cap"; //
///////////////////////////////////////////////////////////////////////////////
if ( carrier() )
{
i=0;
while( i == 0 && inkey() != 27 )
{
i=hangup();
if(i > 0) break;
vrstrarea(h); gotoxy( 0, y );
delay_scr(10);
cputs_tr(_mdm_hang_str);
if (waitfor("OK", 3) ) break;
delay_scr(5);
}
}
vrstrarea(h); // gotoxy( 0, y );
// substr(_entry_name, 0, 15, bbsname);
pstraxy( _entry_name, 0, statline, statline_color);
gotoxy(0, y);
while ( inkey() != 27 )
{
cputs_tr(_mdm_init_str);
if ( waitfor("OK", 2 )) break;
delay_scr(2);
}
cursor_onoff(1);
_scr_chk_key = 1;
return;
}
///////////////////////////////////////////////////////////////////////////////
// Check Row and Color of Status Line
chk_stat ( int statchk )
{
gotoxy(67, statchk);
if ((vgetchr() & 255) == 79 )
{
Statline = statchk;
statline_color = vgetchr()/256;
}
else return(-1);
}
///////////////////////////////////////////////////////////////////////////////