home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.whtech.com
/
ftp.whtech.com.tar
/
ftp.whtech.com
/
club100
/
cat
/
vt100.exe
/
lha
/
VTDOC1.DO
< prev
next >
Wrap
Text File
|
1991-08-07
|
13KB
|
333 lines
100/100
A VT100 Emulator
for the
Model 100/102
NoteBook Computer
written by
Terry Luke
This program is in the public domain and may be freely
distributed as long as this page remains with the program
and it is distributed without charge except for reasonable
duplication fees.
Copyright 1987
Terry Luke
All Rights Reserved
The Author of 100/100 assumes no liabilites to any user regarding
any loss or damage caused by th 100/100 program. Much effort has
been taken to make 100/100 reliable, and error free, but not
responsibility can be assumed for loss of data, interruption of
service, or loss of business or profits.
100/100 DOCUMENTATION
INTRODUCTION
100/100 Documentation
Your copy of 100/100 will give telecommunication capabilities to
your TRS Model 100/102 you never thought possible. Finally, you
can get true VT100 emulation and ANSI terminal capabilities to
allow you to access many host applications previously
inaccessible to your laptop portable. Now you are able to
utilize the full resources of your VAX or other host which
requires a VT100, while on the road, at home, or in your
customer's office - wherever you happen to be.
Although there are obvious inherent limititations to using a 40
column by 8 line screen to emulate a screen that is 80 x 24, each
feature of 100/100 has been carefully chosen and designed to give
you the most flexibility in an easy to use format - all while
maintaining performance very close to the original TELCOM program
inside your Model 100.
This manual has three sections. SECTION I is a general overview
of the capabilities and limitations of 100/100 and a summary of
how to use its functions. Beside providing an overview, the
technical user, or the user very familiar with the Model 100 may
find it all he/she needs to use the 100/100 program.
SECTION II provides more detail as to how to load and save the
program and a more step by step approach with examples on how to
use each feature of 100/100. It also details how to relocate the
program, and how to use it in conjunction with DIRACC 100 by Hugo
Ferreyra.
SECTION III gives information that a technical or more
experienced user may be interested in, regarding the program's
use of memory, and information useful in avoiding conflicts with
other machine language programs. This section also explains what
you may experience in using the VT100 emulator due to limited
features or features which have not been implemented.
Appendix A discusses XON/XOFF and how to toggle between disabled
and enabled within the emulator, including when, if ever, this
feature would be useful.
Appendix B details how to use 100/100 with the Xmodem program on
CompuServe named SXM.100. Enhancements to SXM are explained,
including the ability to enter TELCOM or VT100 and then return to
the Xmodem program without having to redial.
LIST OF PROGRAMS AND UTILITIES INCLUDED
100/100 includes a complete suite of programs to allow you to do
most anything you need and tailor it to your own requirements.
If you are receiving a tape or Portable Disk Drive (PDD) copy of
the programs, the files with the ".CO" extensions will be
included and will be ready to run. If you are downloading from
an electronic bulletin board, the loader programs will be the
ones you will need. They will, however, end in the extension
".DO" instead of ".BA". They are the ASCII (Text) versions of
the BASIC programs, since they are easier to download than the
binary (or tokenized versions) with the ".BA" extensions. For
example, VTLDR.BA will most likely appear on the bulletin board
as VTLDR.DO. After downloading, enter BASIC on the MODEL 100/102
and type LOAD "VTLDR.DO". This will convert the text file to a
BASIC program. You can then save it by typing SAVE "VTLDR.BA",
or you can leave it in text format and just type RUN after
loading, to run it as a BASIC program. It will then create the
VT100.CO program. Since ".CO" programs can't be downloaded
without special telecommunications programs, all files downloaded
must be text.
VT100.CO - This is the main program, machine language VT100
Emulator Program. It occupies 3406 bytes of high memory from
59554 to 62960. It is relocatable to any memory location by
using the loader program below.
VTLDR.BA (.DO) - With this BASIC loader program, VT100.CO can be
loaded into any memory address. If other machine language
programs conflict with VT100, this program will allow relocation.
Since the program contains all the data within itself, no
additional loader data file is required. 8300 bytes long.
DIRPOK.BA (.DO) - Basic program used to activate F7 in Telcom to
use DIRACC 100, a 152 byte machine language program by Hugo
Ferreyra, used to access BASIC and the TEXT program while
on-line. This program also is used to redefine F7 for use with
SXMACC to allow TELCOM and VT100 to be entered from a BASIC
program such as SXM.100 Xmodem program. Re-entry back to BASIC
is made possible with this method.
DIRACC.BA (.DO) - The BASIC loader program by Hugo Ferreyra which
creates the 152 byte add-on machine code as described above.
VT100D.CO - machine language code which combines the DIRACC
program and VT100 together already. If you receive these
programs on disk or tape and don't need to relocate them, this is
a ready to go program of VT100 and the DIRACC add-on which you
just load and run.
SETUP.BA (.DO) - Basic program used to change default parameters
of VT100 such as tab stops, autowrap and new-line mode.
DEFKEY.BA (.DO) - Basic program to define Function key 7 if
DIRACC is not to be used. Defaults to defining F7 to display
files and free memory while on line.
SXMACC.CO - a machine-language module to be added to VT100 to
allow its use with SXM 100 and other BASIC program which need to
be able to call TELCOM and VT100 and return to the BASIC program.
SXMLDR.BA (.DO) - a loader program used to relocate SXM to match
a relocated VT100.CO.
VTSXM.CO - VT100 with SXMACC.CO already combined and the function
keys defined to allow use with SXM.100 and other BASIC programs
(3499 bytes long, from 59462 to 62960 - not relocatable)
SXMMRG.DO - A patch to be merged with SXM 100, a BASIC program
available on CompuServe and other bulletin boards which supports
the Xmodem protocol for file transfer.
SXM.BA (.DO) - the SXM 100 program which allows Xmodem file
transfer using the built in modem only.
SXMDOC.DO - the documentation file for the SXM 100 Xmodem program
listed above.
SECTION I
OVERVIEW
100/100 is a machine language program for the Model 100/102 that
emulates the functions of the Digital VT100 terminal. It allows
the Model 100 to be used to access VAX and other computers and
use programs which are screen oriented and require VT100
compatibility. It decodes the ANSI escape sequences and performs
the proper action. Text scrolls horizontally to simulate an 80
column screen as the data is received and the program saves 80
columns by 24 lines of data to be displayed in six windows by
using the Model 100 function keys.
Although not all of the VT100 functions can be emulated on the
Model 100, many of the features have been, including:
Tabs: up to ten horizontal tabs can be set. Tabs set after the
tenth are ignored. Tabs can also be cleared under program control
or with the Setup program that is included.
Cursor keys: the Model 100 cursor keys emulate the VT100 cursor
keys, both in cursor and application mode.
Keypad: the VT100 keypad is also emulated using the graph key in
conjunction with the keys labeled for use with the "NUM" key.
(eg: GRAPH m = 0 on the VT100 keypad).
Scrolling Regions: 100/100 supports software selection of top
and bottom margins to create scrolling regions smaller than the
entire screen.
Reverse Scrolling: The screen will scroll down when a reverse
index command is received and the cursor is at the top margin.
Direct Cursor addressing: The program will move the cursor to
the proper location (HVP and CUP commands, etc.)
What are you?: 100/100 will respond properly when asked to
identify itself, allowing use of programs which normally abort
automatically if your are not using a VT100.
Erasing: supports all the VT100 erase functions, cursor to end
of line, end of screen, clear screen, etc.
Editing: supports both replace and insert character mode as well
as insert line and delete line commands.
Autowrap: Characters received will wrap automatically at the
right margin if the feature is turned on, otherwise it defaults
to no wrap at column 80.
Line Drawing Character Set: 100/100 will emulate the line
drawing characters of the VT100 character set only. Other
special characters are not translated.
Newline Mode: both new line and no new line on linefeed are
supported, either under program control or using the Setup
Utility included.
Device status or cursor positioning reports.
Save and Restore Cursor
FEATURES NOT IMPLEMENTED
132 column mode
Origin relative mode
VT52 Mode
Smooth scrolling
Local Echo
Alternate character sets
Attributes such as reverse video, bold or blinking. (These
commands are trapped however, to prevent garbage on the screen)
Double-width or double-height characters
TELCOM COMPATIBILITY
100/100 works in conjunction with TELCOM, so Autodial, Echo to
printer, Uploading and Downloading are all available. You must
first enter terminal mode of TELCOM then use F6 to enter the
VT100 emulator. 100/100 works equally well with either the
built-in modem or the RS232 port. During an online session, a
user can switch back and forth between the VT100 and TELCOM at
will using the F6 key. This is particularly useful, not only to
be able to use UPLOAD and DOWNLOAD in TELCOM, but because text
files are sometimes easier to read in 40 column wrap mode than 80
column horizontal scroll mode.
In addition, 100/100 is completely compatible with the DIRACC.100
program on CompuServe. The F7 key while in TELCOM is defined by
100/100 to bring up the prompt "<T>ext or <B>asic". The selected
reponse jumps the user to the proper portion of the DIRACC
program. After editing a file or executing BASIC commands,
DIRACC then returns you back to TELCOM while maintaining the
connection.
XMODEM AND 100/100
To use this program with SXM.BA, a CompuServe program allowing
file transfer with Xmodem protocol, see appendix B.
MODEL 100 FUNCTION KEYS WITHIN TELCOM
The function keys remain the same in TELCOM with the exception
that 100/100 defines the F6 and F7 keys as follows::
F6 will enter VT100 mode
F7 will bring up the prompt to enter "<T>ext or <B>asic. If
DIRACC is loaded and DIRPOK has been run, pressing 'T' will bring
the user to TEXT, where a file can be created, or edited off-line
for later uploading. F8 will exit text and reenter TELCOM.
Pressing 'B' at the previous prompt will bring the user to BASIC,
where programs can be run or files killed. Exiting to Menu,
however, will disconnect the line. To reenter TELCOM, press F6,
which should be defined as "CALLHIMEM"+chr$(13). Running the
DIRACC loader program will set the F6 function key to do this.
Section II explains this process in greater detail.
MODEL 100 FUNCTION KEYS WITHIN VT100 MODE
Pressing F6 in TELCOM enters VT100 mode which redefines the
function keys. The Model 100's 40 column by 8 line screen is a
window into one sixth of a normal 80 column by 24 line VT100
screen. In VT100 mode, the following keys are used for special
functions:
F1 will show Section 1 of the VT100 screen. As illustrated in
FIGURE 1 below, this is the upper most left sixth of the screen
(lines 1-8, columns 1-40)
F2 will show Section 2, the middle left sixth of the screen
(lines 9-16, columns 1-40)
F3 will show Section 3, the lower left sixth of the screen (lines
17-24, columns 1-40)
F4 will move down four rows from whatever vertical and horizontal
position is presently being viewed.
F5 will display columns 1-40 at the present vertical position.
If already at the left margin, no action will be taken
F6 will display columns 21-60, showing the middle section of the
screen. The vertical position coincides with the current
vertical position.
F7 will display the left side of the screen, columns 41-80 in its
present vertical position.
PASTE -the PASTE function key- will return to the original screen
where the cursor is presently located and exit view mode. The
PASTE key is also used to exit fast mode and resume full echo to