home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
norge.freeshell.org (192.94.73.8)
/
192.94.73.8.tar
/
192.94.73.8
/
pub
/
computers
/
pcjr
/
comm
/
TLXPCP10.LZH
/
PCP1200.SLT
< prev
next >
Wrap
Text File
|
1988-12-11
|
2KB
|
70 lines
//This area is for user configurable variables
str message_tone[]="y";
str phone_no_1200_baud[]="xxx-xxxx";
///////////////////////////////////////////////////////////////////////////////
// //
// pcp1200 v1.0 Copyright (c) by Charles lee //
// November 1988 //
// //
///////////////////////////////////////////////////////////////////////////////
beep(int freq)
{
if((message_tone=="y")|(message_tone=="Y"))
{
tone(freq,20);
}
}
main()
{
int flag;
str phone[20]="m";
clear_scr();
if(!carrier())
{
// Dail PCP at 1200 baud N82
strcat(phone,phone_no_1200_baud);
set_cparams(1200,0,8,2);
flag=dial(phone,0,1);
if(!flag)
{
status_wind("User aborted 1200 Baud Gateway to Pursuit!",30);
prints("+++ Gateway Aborted! +++");
beep(500);
hangup();
return;
}
}
//Logon to PCP
status_wind("Logging on to Pursuit!",30);
prints("Logging on to Pursuit!");
cputs("^M");
delay(10);
cputs("D^M");
flag=waitfor("=",5);
if(!flag)
{
status_wind("Unable to log on to Pursuit!");
prints("+++ Unable to log on! +++");
beep(500);
hangup();
return;
}
else
{
cputs("D1^M");
}
//Successful Logon!
beep(3000);
status_wind("Success!",30);
call("citydial.slc");
}