home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
tterm_68k.lzh
/
tterm.doc
< prev
next >
Wrap
Text File
|
1996-03-10
|
10KB
|
247 lines
Tterm - a simple terminal program for OS9 and OS9000
by Ed Gresick and Stephen Carville
From Mark Griffith's original code
This is a basic terminal program providing
Simple Dialer
XModem, XModem-1K, YModem (Batch) transfer
Compuserve B+
Setup.
This program and all of it's attendants were written entirely in Ultra-C
so if you don't have the 'csl' and 'fpu' modules installed you will need
to get them. See the readme file for details and availability.
Before using Tterm, run the program 'tsu'. This will check to be certain
that all the necessary directories and files are available and create
them if needed. This version of Tterm requires that names and numbers be
added to the dialer file manually with a text editor. See the section
titled "Dialer File Setup" for details.
This program reads the MODEM environment variable for the port the modem
is attached to. This may be over-ridden by the "-t[=]<port>" option but
there is no default - either MODEM or -t must be specified.
X and Y transfer services are provided by a companion program called
"xyt" which has been designed to work with Tterm. This program must be
in the current CMDS directory or in a PATH directory to use Tterm's built
in transfer abilities.
Command Summary
The original Sterm command syntax has been abandoned if favor of Function
keys:
F1 Show This Message
F2 Capture On/Off
F3 Change Directory
F4 Quit
F5 Ascii Transmit
F6 Transfer A File
F7 Set Transfer File
F8 Set Transfer List
F9 Dial Directory
F10 Execute a Shell
F11 Echo ON/OFF
F12 High Bit Filter On/Off
Show Help - [F1]
Shows the help box with a brief summary of the commands available, modem
port and the current baud rate.
Capture ON/OFF - [F2]
This toggles the capture-to-file on or off. When on, everything echoed
to the screen is also captured to the designated file.
Change Directory - [F3]
Changes the working directory Tterm reads files from or writes files to.
Quit - [F4]
Quits Tterm after prompting with "Are You Sure?".
Transmit a file - [F5]
Prompts for a file name and transmits it verbatim. There is a slight
delay at the end of each line to allow the remote machine to echo back.
This is intended to transmit Ascii files but will send non-ascii
characters. This last can cause unpredictable results at the remote
end.
File transfers - [F6]
This command initiates file transfer. You are prompted as to whether you
want to <S>end or <R>eceive. If no file or list of files had been
selected with the Esc F or Esc L commands the <S>end will return an
error. The transfer software will automatically negotiate the protocol
so no further selection on your part is needed.
Set Transfer File - [F7]
This is used for single file transfers to another machine. At the
prompt, enter the name of the file to send. Tterm checks to be certain
the file exists and is accessible before continuing. Wild cards are not
permitted so if several files need to be transfered use Esc L instead.
Set Transfer List - [F8]
Sometime you will need to upload several files one right after the other.
This is know as a batch transfer and this command tells Tterm that the
filename entered is a list of the files to send - one file per line.
Tterm checks the list to be sure that all the requested files exist and
are accessible. If all the files are valid the list is accepted, if there
are no valid files the list is rejected and if some are valid and others
are not you are given the option of accepting the list anyway. Invalid
or inaccessible files will be rejected by Tterm's transfer software.
Dial Directory - [F9]
This command open the dialer file containing your specific hosts and
phone numbers and presents you with a list. You are prompted for a host
to dial. See the section below called "Dialer File Setup" for details on
the format.
Echo ON/OFF - [F11]
Toggles local Echo (Duplex) on or off. Most systems echo every character
received back to the sender in interactive mode so this command is rarely
needed.
Execute Shell Command - [F10]
Allows a shell command to be executed from within Tterm. If a blank line
is entered, an interactive shell is activated. Use "logout" or the Esc
key to return to Tterm.
Tterm releases all control of the modem port during this operation so
alternate transfer software can be initiated from this command.
High Bit Filter ON/OFF - [F12]
Toggles the high bith filtering on and off for BBS systems that send
8-bit characters
Dialer File Setup
To add or edit entries in your dialer file chd to /dd/USR/TTERM and load
the file into a text editor. The file name is constucted using your
login name as stored in the USER environment variable and adding the five
characters ".dial". If your user name is "joatamon" then your dialer
file would be called "joatamon.dial". If USER is not defined, the name
"generic.dial" is used.
Each entry consistes of at least three lines. The first is the entry you
want to appear in the menu. The second is the dialing string to send to
the modem - usually atdt<phone number> but the exact syntax will depend
on your individual modem. Each of these first two lines is limited to 32
characters. The last line in each entry must be two backslashs ("//")
and every entry must have this terminator. Anything between the second
line and this terminator is ignored in this version of Tterm but later
versions may make use of information in these lines. An example file
might look like:
Delphi (via SprintNet)
atdt 331-6611
//
Delphi (via MCINet)
atdt 1 909 860 2881
//
Skeptics BBS
atdt 335-9601
//
Termcap Usage.
This program requires that you have a termcap entry for the terminal type
specified in the TERM environment variable. The clear screen (cl),
cursor motion (cm), standout on (so) and standout off (se) are required.
The pad character (pc), backspace (bc) and cursor up (up), are needed
for certain terminals so are also checked for but are not required.
The following keys are required:
k1 - k9 function keys F1 thru f9
k0 function key F10
F1, F2 function keys F11 and F12
ku Up Arrow Key
kd Down Arrow Key
kl Left Arrow Key
kr Right Arrow Key
If your terminal can support special graphics characters, they can be
designated with the "ac=" capability. If this capacity is missing or not
complete, then a default ascii set is used. The mapping is based on the
double line graphic characters used on most IBM machines but since many
implementation of termcap will not accept eight bit characters the high
bit is cleared. This is a list of the characters used by this program:
vertical bar \072 (':' is a terminator in termcap)
horizontal bar M
upper left corner I
upper right corner ;
lower left corner H
lower right corner <
Each entry in ac= is actually two characters, the first is the "standard"
value, the second is the equivilent on the terminal the entry is for.
Following is the appropriate entry for a machine that supports the
standard IBM double line graphics:
:ac=\072\072;;<<HHIIMM:\
Transfer List Format
The transfer list designated by the F7 command is simply a list
of files to be sent using the X or Y protocol. One file or pathname is
on each line:
/dd/C/TELECOM/tterm_src.lzh
/dd/GAMES/Chess_data
/dd/ETC/ecetera
Transfer Log
Each user of Tterm will find in the /dd/USR/TTERM directory a file called
<user name>.xyt containing a cumulative list of files transferred using
the X or Y protocol under his account. This file is automatically
created by Tterm and contains the name of any files sent or recieved
using the F6 command, date and starting time of transfer, total bytes
transferred and approximate bits/second. This version of Tterm does not
log B+ transfers.
This file can become quite large if a lot of files are transferred so
periodic editing is advised.
Acknowledgments:
Mark Griffith, whose Sterm served as the original inspiration to write
this program. Tim Kientzle for his description of the X and Y protocols
in Dr. Dobbs Journal. Ed Gresick for his help in getting the OS9000
version of this program to work, testing the B+ protocol and for
pointing out those little errors...
Obligatory Legal Stuff
This version (2.XX) may be freely distributed as long as this
documentation and all other files listed in "readme" are included.
This program is brought to you by:
Stephen Carville
P.O. Box 822
Glendora, CA 91740 USA
(818) 914-2511
pagan@delphi.com
Custom modification to this or any other of my programs is available.
Contact me at the above phone number or E-mail address for further
information.