home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.update.uu.se
/
ftp.update.uu.se.2014.03.zip
/
ftp.update.uu.se
/
pub
/
rainbow
/
msdos
/
misc2
/
dialv23.lzh
/
DIAL.DOC
< prev
next >
Wrap
Text File
|
1985-09-05
|
7KB
|
166 lines
Turbo DIAL V2.0 for DEC Rainbow
Ted Weirich, July 1985
SUMMARY
This program presents a screen oriented interface for dialing a HAYES modem.
Use a letter or the editing keypad, such as the arrows, next screen, help, and
so on, to select the phone number with which to dial the HAYES. The number
will then be dialed. Strike any key during actual dialing to abort the call.
Once the party answers, a carriage return will be sent three times to autobaud
the destination. Then the command line given in the menu will be passed to
DOS. This usually invokes a terminal or protocol program such as LCTERM, TC,
MINITEL, KERMIT, or others. Your session is then as if DIAL was not present.
When you end your remote session and exit the invoked program you will be
returned to DIAL and can make another selection or exit.
BUILDING FROM SOURCE
There is a COM file in this archive, but you may wish to build your own after
modifying the sources. It is written in Turbo Pascal 3.0 for DOS. All
operation has been done under DOS 2.11 on my 832kb (previously 256kb) Rainbow
100A with 5 mb winnie.
The main source is here in DIAL.PAS. COMMLIB.INC are procedures used to deal
with the aux port, KEYBOARD.INC are routines used to gather keystrokes, while
KEYDFNS.INC are the character definitions. FVCONST.INC are definitions for
fast video. EXECUTE.INC is the execute lower program function and FINDENV.INC
is the routine to read DOS environment variables. HELP.INC is all the help
text. HAYES.INC are the Hayes SmartModem specific routines.
Build this program with compiling to a COM file with min 50 and max free space
of 100. The following key strokes to TURBO should suffice.
TURBO <cr> Y O C I 3 0 <cr> A 6 0 <cr> Q C DIAL.PAS Q
MAX_DIR_ENTRIES determines how many entries from which you may select.
Currently set at 100. AUTOBAUD_CHAR is the character sent NAUTO_TIMES to let
the remote system determine your speed. MODEM_TYPE is the type of modem you
are using. Hayes is value 1, no other values implemented or tested. Hey
there, DF03-AC owners!! There is an init string for the Hayes in routine
INIT_HAYES. The Hayes is informed NOT to echo commands, and if it does,
rsponse matching will fail. Other parameters should work in any setting, but
I've not tested all possible settings.
DIRECTORY TEXT FILE
DIAL reads a DIALNUM.TXT file at startup to build the list of possible phone
numbers, their descriptions, and the corresponding DOS command to give upon
successful dialing.
To make a DIALNUM.DOC file, use your favorite editor, and make 3 line entries.
DIAL currently supports 100 entries. The first letter of each line is a
"record type" or key. The second character is usually a "=" but can be
anything - it is not checked. Currently the good letters are N, D, and C. N
is the number, D is the description, and C is the command. Lines beginning
with ";" or "!" are comments and are ignored. Blank lines are also ignored.
Sample of a DIALNUM.DOC file.
;DIALNUM.DOC - Read by Turbo DIAL as phone directory information
; N is the number
; D is a description line
; C is the DOS command to be done at successful connection
;
N=1,6174677437
D=Market
C=Kermit Conn
;
N=9739338
D=FIDO56
C=Minitel
;
N=12125358924
D=FIDO79
C=Minitel
;
N=3376060
D=TELNET
C=Kermit Conn
;
N=16174817147
D=WayStar
C=Minitel
INSTALLING DIAL
Copy the COM file to whatever directory you wish, presumably one included in
your path. Put the DIALNUM.DOC file in the same or different directory and
create a DOS environment variable called DIAL to point to it. For example, if
you put DIALNUM.TXT in E:\COMM then include a "SET DIAL=E:\COMM\" in your
AUTOEXEC.BAT file. If there is no enviroment variable named DIAL, DIAL will
look for the directory file in the connected directory.
RUNNING DIAL
Invoke this with DIAL <cr> or DIAL name <cr>. Name will be searched for in the
list of descriptions and if found, it becomes the selected number. You must
still use DO or RET to start the dialing. If you omit any command line
parameters, the first entry will be the selected one. Of course, you can
change this by moving about with the arrows, next screen, prev screen, etc.
SELECTING AN ENTRY
The keys used to select an entry from the menu are:
Up Arrow Previous entry
Down Arrow Next entry
Previous Screen Previous screen of entries
Next Screen Next screen of entries
Shift Previous Screen First screen of entries
Shift Next Screen Last screen of entries
Cancel Hangup the phone
Interrupt Push to a lower shell
Help Gets this text
Do Dial highlighted entry
Return Same as Do
Exit Exit DIAL completely
Space Same as Exit
or enter the letter A through S. If you enter any other key, or the letter
does not correspond to a valid number, BEEP.
WAITING FOR THE MODEM TO CONNECT
Once you are waiting, you have two choices. Wait for the Hayes to signal
completion or failure, or abort the call. It is told at init time to let 25
seconds expire before giving up. If you don't wish to wait this long, strike
any key to abort the wait and you'll be returned to the menu.
ONCE IT DOES CONNECT
Since some programs or commands take a while to get rolling (such as an 87kb
Kermit 2.27), I will pass three carriage returns to the remote system before
passing the DOS command to the lower shell. Change AUTOBAUD_CHAR and/or
NAUTO_TIMES if you don't like this. The DOS command is usually used to invoke
a program capable of being a terminal emulator of sorts.
"LCTERM /se:\foobar\login.scr" is a valid command, as well as KERMIT CONN,
MINITEL, etc. Once this is started, the session is as if DIAL wasn't around.
ENDING YOUR SESSION
End your remote session in its normal, prescribed manner. If it neglects to
hang up the phone, use the CANCEL key to hang it up from this end. Then select
another entry to dial or enter EXIT to quit altogether.
CREDITS AND DISCLAIMER
I owe much to the authors of several packages I used to build this: mostly
made possible by B. Eiben of DEC, whose efforts in managing public accounts on
DEC's MARKET system brought together all the tools I needed. No amount of
thanks to Bernie are sufficient. This program is placed in the public domain
and any are welcome to copy it and/or modify it as long as it is not used for
any commercial purpose and distributed freely.