home *** CD-ROM | disk | FTP | other *** search
- CVT220 Modifications by Bob Bonomo CIS [76314,2200]
- All modifications are placed in public domain.
-
- This modification came about by a need to emulate a VT220 using
- SCO-XENIX (tm). I figured it was a good place to start and
- also a good exercise to tone up my C. It quickly became
- apparent that upload/download capability was also needed.
- Using the capture facility of CVT100 was not safe enough so
- XMODEM protocol was added. Most of the code for XMODEM was
- taken from Al Stevens Smallcom project in Dr. Dobbs Journal
- and was adapted to CVT100. The data entry part is also from
- DDJ. I tried to use the same style of coding as the original
- when I integrated my changes.
-
- MODIFICATIONS:
-
- PROTOCOL.C is a new module. It does the actual upload or
- download. It also intercepts the ticker interrupt in order to
- install timeouts.
-
- DATA.C is also new. It just reads a data field and does
- minimal word processing.
-
- VTSETUP.C was modified to use the ALT-Function keys because the
- VT220 uses F5 thru F10. Having done this, the menu line was
- changed à la BORLAND to only show when the ALT key is pressed.
- All the setup screens were changed to open up with boxes and
- reverse colour. Code was added for the protocol transfer setup
- screen, VT100 or VT220 mode selection, and a DOS shell.
-
-
- KEYIO.C adds the new functions for the VT220 keys. VT100 or
- VT220 mode is selectable thru the emulation setup menu. I also
- made it aware of an AT style keyboard. Code for a BREAK key
- (CTRL-END) was added. While adding the BREAK key code I
- discovered that any extended key , such as CRTL-END or HOME or
- PGDN, that did not have a function associated with it sent a
- 00h. I tested this code on a PICK system and it interpreted
- 00h as a BREAK signal. I changed the code to only send out
- non-zero characters.
-
- On a PC, it does the keypad mapping like the original CVT100:
- keypad DASH (-) to comma (,)
- keypad PLUS (+) to enter (\r)
- keypad STAR (*) to minus (-)
-
- If the keyboard is the AT style it does these mappings:
- keypad STAR (*) to star (*)
- keypad MINUS (-) to minus (-)
- keypad PLUS (+) to comma (,)
- keypad ENTER to keypad enter
-
- This visually look more like both the real VT100 and VT220
- keypads. All values used for all the VT220 keys were taken
- from the Crosstalk (tm) Mark IV manual.
-
- CVT100.C was renamed to CVT220 and was changed to turn BREAK
- off at startup and then reset it to its original value before
- returning. This allows CTRL-C to pass thru and not exit the
- program. There were people using ORACLE (tm) on a PC and they
- needed BREAK on. A routine to shell to DOS was added.
-
- COMIO.C was modified to set the timer in ttinc() when doing
- protocol transfers and returns a NULL after a timeout. A
- routine to send a BREAK signal was added.
-
- FILEIO.C was changed to read and save the parameters for
- protocol transfer and the terminal type. It will search the
- default directory first and then the directory where the
- program was loaded from for the setup file. Saving the setup
- is always done to the default directory.
-
- CVT100.H was renamed to CVT220.H and changed for all the
- functions in the two new modules. New KEY defines for the
- VT220 were added.
-
- CVT100.PRJ was renamed to CVT220.PRJ.
-
- XMODEM.C is UNIX transfer program that will operate in either
- interactive mode or batch mode. It is supplied here so that
- the automatic transfer mode can be used. See USER.DOC for
- more info.
-
- CHANGES in the planning stage.
- 1. A function to look at the LOG file while in the emulator.
- 2. Edit a line in the LOG file and send it to the host.
- Useful to correct a command.
- 3. An option to send incoming data to the printer.
-