home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-10-24 | 38.9 KB | 1,477 lines |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 Color Terminal Emulator
-
- by Greg Pfountz
-
- V.1D
-
- October 24, 1990
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 1
-
- * * * INTRODUCTION * * *
-
- Welcome to the wonderful world of Commodore's color/graphics
- telecommunications! C64 Color Terminal Emulator will allow many
- IBM or compatible computer owners to join in on the fun that
- Commodore users enjoy.
-
- The Commodore 64 family of computers does not use the standard
- ASCII character set. It uses a customized character set known as
- CBM ASCII. This alternate character set allows changing
- character colors and cursor movements simply by displaying a
- specific character code. For example, when the Commodore 64
- prints a chr$(5), the cursor becomes white and all remaining
- characters printed to the screen will be displayed white. And
- when you print chr$(145), the cursor moves up one line and all
- remaining text will print from this position. This method of
- cursor positioning and setting screen colors is similar in
- abilities to what ANSI offers to an IBM or compatible only much
- simpler to use.
-
- This program will allow users of IBM and compatible
- personal computer systems to call any Commodore 64 or Commodore
- 128 color/graphics bulletin board system and view/send any of the
- color and graphics. I know that there are several other terminal
- emulators that offer similar abilities; it is my goal to produce
- a terminal program that has more features and is easier to use. I
- want to offer to any IBM or compatible user a terminal program
- that:
-
- 1) works properly on their system
- 2) does the best job possible of CBM ASCII emulation
- 3) is easy for the end user to learn and operate
- 4) offers the features we have all come to expect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 2
-
- * * * HARDWARE REQUIREMENTS * * *
-
- C64 Color Terminal Emulator was written with Microsoft's Quick-C
- (v2.5) and should run satisfactorily at 2400 baud even while
- processing a script and logging to disk even on the slowest of
- systems. On faster systems, the maximum baud rate is 110,000.
- It is required that your system be using a CGA, Hercules, EGA or
- VGA display type - although an MDA option (without color of
- course) could be added later if enough demand warrants it. A
- color monitor is not required, but it definitely improves the
- appearance of the display. If you are a DESQview user, C64 Color
- Terminal Emulator will automatically detect your DESQview
- environment and write directly to DESQview screen memory.
-
- A Hayes compatible modem is required and can be connected to
- COM1, COM2, COM3 or COM4 and must have DCD (data carrier detect)
- working properly (eg. setup to be true only when the modem is
- connected to a remote system). Non-Hayes compatible modems may
- be made to work, but no guarantees are made here. Supported baud
- rates are 300-110,000.
-
- Due to the differences in the character set of the Commodore 64s
- and the IBMs, not all Commodore character codes have an exact IBM
- character code replacement. And only the EGA and VGA display
- systems on the IBMs allow redefining the character sets to
- emulate the unique Commodore character codes. So CGA and
- Hercules users will not see the graphic screens exactly as they
- should - but they will be close. EGA and VGA users will find the
- display of graphic characters much better.
-
- Also, the IBMs and compatibles allow 16 foreground colors and 8
- background colors while in text mode. Any combination of
- foreground and background colors are allowed. The IBM systems do
- not have a specific reverse video mode. The Commodore 64 has 16
- colors any of which can be normal or reverse video and only one
- of the 16 available colors at a time can be the background color.
- Both computer systems have very good text color abilities, but
- each are different enough that an exact emulation is not
- possible. The PC can only display 8 background colors (used to
- emulate the reverse video mode on the Commodore 64) so not all
- colors will be exact. For example, a line of yellow text on the
- Commodore 64 will show as a yellow text on the IBMs and
- compatibles, but when the yellow line is reverse video on the
- Commodore 64, it will display as black characters on a red
- background on the IBM (there is not a yellow background color
- available on the IBM systems). I am sure that overall you will
- find the emulation very good.
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 3
- * * * FILES * * *
-
- The following files are contained in this archive:
-
- C64TERM.EXE - C64 Color Terminal Emulator
- C64TERM.DOC - this file
- C64TYPE.EXE - displays Commodore files on screen
- uses the same output routines as C64TERM.EXE
- CBM2ASCI.EXE - converts a CBM ASCII file to ASCII
- default output is STDOUT - can be redirected to
- a disk file or printer
- LBR64.EXE - dissolves Commodore .lbr files
- AX.EXE - dissolves Commodore .arc files (by Chris Smeets)
- LISTCBM.EXE - displays Commodore BASIC files (by Chris Smeets)
-
- The following file will be created automatically:
- C64TERM.CFG - config file for C64TERM.EXE
- contains your configuration, phone list, function
- keys, etc.
-
- The executable files should either be placed in a directory that
- is in your path or a batch file should be created to make the
- directory where these files are stored your default directory.
-
- The C64TERM.CFG needs to be either in the default directory when
- C64 Color Terminal Emulator is started or you need to assign the
- environment variable C64TERM to point to where your C64TERM.CFG
- is stored. For example
- SET C64TERM=C:\TERMINAL\
- will tell C64 Color Terminal Emulator to look for its
- configuration file in the C:\TERMINAL\ directory even if
- C64TERM.EXE is located in another diretory and/or your default
- directory is not C:\TERMINAL\.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 4
-
- * * * STARTUP * * *
-
- C64 Color Terminal Emulator was designed to be started in 1 of 2
- ways. First is for it to be started from the command prompt by
- typing:
- C64TERM [SCRIPT]
- It will initialize the modem and if applicable, automatically
- execute SCRIPT. This is the way most term programs are started.
-
- Alternatively, (and I feel will be the most popular) is to call
- C64 Color Terminal Emulator from within another terminal program
- (such as Telix, Procomm or any of the other popular ANSI/ASCII
- terminal emulators for the MS DOS family of computers). With
- this mode of startup, you might be using the autodialer of your
- ASCII terminal program to dial a series of bulletin board numbers
- waiting for a connection on any one of several systems. If you
- get a connection on a Commodore color/graphics system, a script
- from within the ASCII terminal program would then execute through
- its system/dos/run command C64TERM [SCRIPT] to start C64TERM and
- if SCRIPT automatically execute SCRIPT. C64 Color Terminal
- Emulator will not send any modem initialize commands, nor will it
- attempt to initialize the UART when started in this manner.
- Instead it will query the UART to determine its current baud rate
- and display that baud rate on its own status line. And then
- SCRIPT will take over and begin to log you into the Commodore
- color/graphics system.
-
- The following script will load C64 Terminal Emulator from within
- Telix and automatically start a script named DE.SCR:
-
- main() {
- dos("c64term de",0);
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 5
-
- * * * SETUP * * *
-
- Setup is performed via a series of pop-up menus. Initially the
- Alt-Key sequence for SETUP is Alt-S. One of the options from
- within SETUP allows you to redefine the Alt-Key sequences
- themselves. If you should ever forget what sequence you defined
- for SETUP, refer to the Help Screen. This help screen will
- reflect the current Alt-Key assignments. Even the Alt-Key
- sequence to pull up the Help Screen can be redefined. If
- necessary, refer to the status line at the bottom of the screen
- for the current Alt-Key sequence to call up the help screen.
-
- The menu below indicates the options available in SETUP.
-
- ┌───────────────┐
- │ Screen Colors │
- │ Files/Paths │
- │ Function Keys │
- │ Alt Keys │
- │ ASCII Pacing │
- │ Modem Init │
- └───────────────┘
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 6
-
- * * * SCREEN COLORS * * *
-
- The first option (Screen Colors) allows you to redefine any of
- the menu and status line colors. By default, the color choices
- are light grey on a black background. Not the most interesting
- color combination - but one that should be visible by all screen
- types. This option allows each system to use whatever colors
- that are best for your hardware and personal preferences. When
- selected, the following menu will appear.
-
- ┌───────────────────────────────────┐
- │ F1 - Text Foreground Color │
- │ F2 - Text Background Color │
- │ F3 - Border Foreground Color │
- │ F4 - Border Background Color │
- │ F5 - Title Foreground Color │
- │ F6 - Title Background Color │
- │ F7 - Selected Foreground Color │
- │ F8 - Selected Background Color │
- │ F9 - Shadow Foreground Color │
- │ F10 - Shadow Background Color │
- │ SHF1 - Status Foreground Color │
- │ SHF2 - Status Background Color │
- │ Selected Text │
- └───────────────────────────────────┘
-
- Simply press the Function Key indicated to increment the desired
- color. The menu will immediately update to the new color.
- Repeat selecting Function Key's until you find the combination
- that best suits you and your hardware. There are 16 possible
- foreground colors and 8 possible background colors. Press ESC
- when you have selected the best possible color combination - the
- new colors will begin being used immediately and automatically be
- saved in the C64TERM.CFG file when you Exit C64 Terminal
- Emulator.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 7
-
- * * * FILES/PATHS * * *
-
- The second option on the SETUP menu (Files/Paths) allows you to
- define where C64TERM will find its SCRIPT files as well as where
- to upload files from and download files to on your system. The
- menu will look similar to the following.
-
- ┌──────────────────────┐
- │ Download Path:A:\ │
- │ │
- │ Upload Path: A:\ │
- │ │
- │ Script Path: A:\ │
- └──────────────────────┘
-
- Leave the field blank to use the current directory.
-
- In the case of the upload and download directories, the paths can
- be overwritten during an upload or download simply by backspacing
- over the path display and changing it as necessary.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 8
-
- * * * FUNCTION KEYS * * *
-
- The third option on the SETUP menu (Function Keys) allows you to
- pre-define up to 20 function keys. Each function key can contain
- up to 70 characters and when pressed, will send its contents at a
- pace that is suitable for a Commodore 64 BBS. The exact pace is
- defined in the ASCII SEND option (discussed later). Simply use
- the cursor arrow keys to select the desired function key and type
- the text you want to send. Use the ~ character to send a
- carriage return and type \### to send any other non-ASCII
- character codes.
-
- ┌───────────────────────────────────────┐
- │ F1 │
- │ F2 │
- │ F3 │
- │ F4 │
- │ F5 │
- │ F6 │
- │ F7 │
- │ F8 │
- │ F9 │
- │ F10 │
- │ SH F1 │
- │ SH F2 │
- │ SH F3 │
- │ SH F4 │
- │ SH F5 │
- │ SH F6 │
- │ SH F7 │
- │ SH F8 │
- │ SH F9 │
- │ SH F10 │
- └───────────────────────────────────────┘
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 9
-
- * * * ALT KEYS * * *
-
- The next option in SETUP (Alt Keys) allows you to redefine the
- Alt-Key sequences for C64TERM. This is handy for those persons
- who are used to using a specific ASCII terminal when calling
- other BBS systems and allows modifying C64 Color Terminal
- Emulator to use the same Alt-Key sequences. For example, maybe
- the terminal program you are used to using uses ALT-O for Setup
- Options and Alt-J for DOS (such as Telix), this feature will
- allow you to modify C64 Color Terminal Emulator to use the same
- Alt-Key sequences. So instead of your having to learn another
- terminal program, C64 Color Terminal Emulator can be setup to
- operate similar to the terminal programs you currently use.
-
- The following menu is what you will see when you select Alt Keys.
- Be careful to not assign 2 functions to the same Alt-Key
- sequence.
-
- ┌─────────────────────┐
- │ Setup: O │
- │ Baud Rate: R │
- │ Clear Screen: C │
- │ Dos Shell: J │
- │ Execute Script: G │
- │ Log On/Off: L │
- │ Phone Dialer: D │
- │ Review Screen: B │
- │ Hangup Modem: H │
- │ Help: Z │
- │ Exit: X │
- └─────────────────────┘
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 10
-
- * * * ASCII SEND * * *
-
- The next option on the SETUP menu (ASCII Send) is where you will
- define the character by character pacing as well as the line by
- line pacing used by C64TERM when sending either an ASCII file, a
- function key or text from within a script. The default is a 30
- millisecond delay per character with a 500 millisecond delay at
- the end of each line. These values should work good when
- calling most Commodore systems. Keep in mind that these values
- have nothing what-so-ever to do with an Xmodem Upload or Download
- which will always transfer at maximum speed.
-
- ┌───────────────────────────────────┐
- │ Char Pacing (1/1000 secs): 30 │
- │ │
- │ Line Pacing (1/1000 secs): 500 │
- └───────────────────────────────────┘
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 11
-
- * * * MODEM INIT * * *
-
- And lastly on the SETUP menu (Modem Init) is where you define an
- initial string to send to your modem, an initial baud rate to use
- and the desired COM port. The modem init string and baud rate
- will only be execute *IF* your system is not already detecting
- carrier when C64 Color Terminal Emulator is started. This allows
- C64 Color Terminal Emulator to be easily called from within
- another terminal program and instead of having to be concerned
- with making sure the baud rate is correct and avoiding the
- results of the sending the modem init string to the already
- connected system, C64 Terminal Emulator just quietly starts up
- and even 'learns' your current baud rate. Below is the menu you
- see when you select Modem Init.
-
- ┌──────────────────────────────┐
- │ Modem init: ATS7=60S8=2~ │
- │ │
- │ Baud rate: 2400 │
- │ │
- │ COM port (1-4): 1 │
- └──────────────────────────────┘
-
- Available COM ports are 1 - 4. If you change the COM port
- number, you will need to exit and restart C64 Color Terminal
- Emulator before the new port number will be used.
-
- If there is a need for any other COM ports - send me the hardware
- specifics and I will see if I can find a way to support them as
- well.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 12
-
- * * * DIALER * * *
-
- C64 Color Terminal Emulator has a built in dialer capable of
- storing and dialing up to 50 separate numbers. I personally
- feel 50 numbers is more than enough - but if anyone needs more
- than 50 just let me know how many you want and I will make sure
- our next version will accommodate your needs.
-
- The dialer system is very easy to use. Pressing the Alt-Key
- sequence to activate the dialer brings up the dialer screen.
- From here you can press D to select a number or numbers for
- dialing, M to enter a number to manually dial, E to select a
- number to add/edit, C to edit the dialer configuration
- information or Q to quit back to terminal mode.
-
-
- * * * DIAL * * *
-
- If you press D for dial, press the space bar to mark numbers to
- be dialed, and when you have selected all the numbers, press
- RETURN. The system will dial each marked number one by one until
- a connection is made. After a connection is made and that call
- is complete, if you select Dial again the remaining selections
- will still be marked for dial.
-
-
- * * * MANUAL * * *
-
- If you press M for manual, you will need to enter a phone number
- to dial and the baud rate. The system will dial and redial that
- one number until a connection is made.
-
-
- * * * EDIT * * *
-
- If you press E for Edit, use the up and down arrows to highlight
- the number to add/edit and press enter. Then you will enter the
- system name, phone number, baud rate and script name.
-
-
- * * * CONFIG * * *
-
- If you press C for Configure, you will need to enter your modems
- dial command (ATDT if your phone line has touch tone service or
- ATDP if your have rotary service), dial command suffix (normally
- ~ for a carriage return), seconds to wait for carrier (45 - 90
- seconds is normal (the system will automatically redial earlier
- if your modem detects a busy line and notifies C64 Color Terminal
- Emulator with a BUSY message), delay between redials, and whether
- you want the system to automatically adjust baud rate to match
- the remote system.
-
- The dial command prefix and suffix are user definable to allow
- support of different modem types as well as support of different
- long distance services. If your modem does not use AT command to
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 13
- dial - you may be able to enter your modems dial commands here.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 14
- But more important is if you are in an area where you need to
- dial extra characters before your number (eg. dial 9 to get an
- outside line), you could define your dial command prefix as
- 'ATDT9,' (for example). And if you are dialing from an area
- where you need to charge the call to your phone credit card, you
- could put (for example) ',,,,,80055512121111~' as your modem
- suffix (enough commas to delay until you hear the tone then your
- credit card number followed by a ~ for the carriage return).
-
- The auto adjust baud rate feature allows C64 Color Terminal
- Emulator to read the speed at which the modem is connected and
- adjust itself to match. When a Hayes 1200 compatible modem
- connects to another modem, it can be programmed to respond with
- CONNECT or CONNECT 1200. If the modem is a Hayes 2400 compatible
- modem, it can be programmed to respond with CONNECT,
- CONNECT 1200, or CONNECT 2400, depending on the speed of the
- modem on the other end. This allows us to always dial our modems
- at their highest baud rate and if the modem answering is a slower
- type, C64 Color Terminal Emulator will read the modems response
- and adjust itself accordingly. For a Hayes 1200 compatible modem
- to be able to respond with CONNECT 1200, you must first send it
- an ATX1 command. Some modems have a switch you can set to allow
- it to default to this setting. And for those that do not, you
- can put an ATX1 in your modem init string in the Modem Init
- section of SETUP in C64 Color Terminal Emulator. For a Hayes
- 2400 compatible modem to be able to respond with CONNECT 2400,
- you must first send an ATX2 command. Actually if your modem
- supports ATX4 (most newer modems now do), this will allow your
- modem to respond with BUSY, VOICE, CONNECT, CONNECT 1200, CONNECT
- 2400, and NO CARRIER and is the recommended setting for all 2400
- baud modems. Most Hayes 2400 compatible modems allow you to
- define your ATX? setting and store it in non-volatile memory
- using an AT&W command. If you have a modem that will not save
- your ATX command in non-volatile memory, you can put it in your
- Modem Init section of SETUP in C64 Color Terminal Emulator.
-
- If your modem does not support the ATX extended response codes,
- make sure you put an N in the auto baud rate adjust field.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 15
-
- * * * SCRIPT COMMANDS * * *
-
- C64 Color Terminal Emulator has a simple built in script
- processor. All script commands are case insensitive with one
- command per line allowed and a maximum line length of 80
- characters. At any time you can abort an executing script by
- press the ESC key or by pressing the Execute Script Alt-Key
- sequence.
-
- Following is a list of all script commands:
-
-
- DELAY VALUE
-
- Will delay the script processor (but not the terminal
- emulator) for VALUE of 1/1000th's of a second.
-
- EXAMPLE:
-
- delay 3000
-
- will force a delay of 3 seconds.
-
-
- WAITFOR TEXT
-
- Will delay the script processor (but not the terminal
- emulator) until TEXT is received. TEXT may be multiple words
- and the comparison text is case insensitive. TEXT should
- not be enclosed in quotes unless quotes will be received
- from the remote system. The maximum length of text is 72
- chars. Use the ~ to wait for a Carriage Return.
-
- EXAMPLE:
-
- waitfor hit return
-
- will force a delay of the script processor until 'hit return'
- is received from the remote system.
-
-
- TIMEOUT VALUE
-
- This command will set the maximum amount of time that WAITFOR
- will wait for a text match. A separate TIMEOUT should be defined
- immediately before each WAITFOR. Failure to define a TIMEOUT
- will cause WAITFOR to wait indefinitely.
-
- EXAMPLE:
-
- timeout 5000
- waitfor hit return
-
- will force a delay of the script processor until 'hit return'
- is received from the remote system or 5 seconds has passed.
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 16
- IFTIMEOUT COMMAND
-
- If a TIMEOUT command has terminated the previous WAITFOR
- command, the rest of the line behind IFTIMEOUT will be
- processed by the script processor. Otherwise the processor
- will skip to the beginning of the next line.
-
- EXAMPLE:
-
- :l1
- timeout 5000
- waitfor command
- iftimeout send \016
- iftimeout goto l1
-
- will wait for 'command' to be received from the remote system
- or if 5 seconds has passed, will send a control p and loop
- back to the :l1 label.
-
-
- SEND TEXT
-
- Will send TEXT at the character and line pacing speed as defined
- in ASCII Send. Use the ~ to send a Carriage Return.
-
- EXAMPLE:
-
- send 123~password~
-
- will send '123' followed by a new line and then 'password'
- followed by another new line.
-
-
- PRINT TEXT
-
- Will print TEXT to the screen followed by a Carriage Return.
-
- EXAMPLE:
-
- print Sending MAIL.BBS
-
- Will display on your screen (not to the remote system)
- 'Sending MAIL.BBS' followed by a carriage return.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 17
- SENDFILE FILENAME.EXT
-
- Will send an ascii file at the character and line pacing speed as
- defined in ASCII Send. The file is expected to be in ASCII
- format and will be converted to CBM ASCII as it is sent.
-
- EXAMPLE:
-
- sendfile user.msg
-
- Will open the file 'USER.MSG' and will send it one character
- at a time at the pace defined in SETUP.
-
-
- UPLOAD FILENAME.EXT
-
- Will send a file using the Xmodem/CRC protocol. If the file does
- not exist, an error will print and the script will continue. To
- write reliable scripts, use the IFEXIST command to determine if a
- file exists before attempting to send it.
-
- EXAMPLE:
-
- upload mail.bbs
-
- will begin an xmodem file upload of MAIL.BBS to the remote
- system.
-
-
- DOWNLOAD FILENAME.EXT
-
- Will receive a file using the Xmodem/CRC protocol. If filename
- already exists, you will be prompted if you want to replace the
- file or not.
-
- EXAMPLE:
-
- download members.lst
-
- will begin an xmodem file download from the remote system to
- the MEMBERS.LST file on your system.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 18
- LOGOPEN FILENAME.EXT
-
- Will open FILENAME.EXT as a capture file and all incoming data
- will be saved to this file. All captured data will be converted
- to ASCII as it is saved to disk. If the capture file already
- exists, new data will be appended to the end of the file.
-
- EXAMPLE:
-
- logopen messages.log
-
- will open MESSAGES.LOG and store every character received
- from the remote system into it after first converting each
- character from CBM ASCII to ASCII.
-
-
- LOGCLOSE
-
- Will close an open capture file.
-
- EXAMPLE:
-
- logclose
-
- closes an open capture file.
-
-
- SHELL COMMAND PARAMETERS
-
- Will shell out to DOS and pass COMMAND PARAMETERS to COMMAND.COM.
- This is a handy way to delete files, rename files, etc.
-
- EXAMPLE:
-
- shell del c:\temp\*.*
-
- will shell out to dos and del all files in c:\temp
-
-
- BAUD VALUE
-
- Will change baud rate to the value indicated by VALUE.
-
- EXAMPLE:
-
- baud 1200
-
- will set the current baud rate to 1200.
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 19
- GOTO LABEL
-
- Allows jumping to another place in the script file indicated by
- :LABEL. For a line to be considered a label, it must be begin
- with a : and contain any combination of characters and numbers.
- Goto's and labels are case insensitive. Labels can also be used
- for comments since the script processor skips all lines that
- begin with a : for purposes other than as a target of GOTO.
-
- EXAMPLE:
-
- ifexist mail.msg goto sendmail
- goto logoff
- :sendmail
- send f
- delay 3000
- sendfile mail.msg
- send /s
- waitfor command
- :logoff
- send o
- delay 1000
- send y
-
- will check to see if MAIL.MSG exists and if so, will goto the
- routine that posts the message onto the bbs. If the file
- does not exist, the script goes to the :logoff line.
-
-
- SCRIPT FILENAME
-
- Allows chaining one script to another. The currently running
- script will be terminated and the called script will start at the
- beginning.
-
- EXAMPLE:
-
- send 123~password~
- script color64
-
- will send the id followed by a carriage return, then the
- password followed by another carriage return then loads and
- executes COLOR64.SCR from the directory defined in setup for
- script files. This is handy when you have one script file
- for a certain kind of BBS, you could create several small
- script files to send the different logon data then they all
- chain to the same script to execute code that is common to
- all the BBSs of that type.
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 20
- IFEXIST FILENAME.EXT
-
- If a line begins with IFEXIST FILENAME.EXT, the following part
- of the line will only be executed if FILENAME.EXT exists.
-
- EXAMPLE:
-
- ifexist mail.msg goto sendmail
-
- would only execute the 'goto sendmail' if the file MAIL.MSG
- exists in the current directory.
-
-
- Example Script
-
- An example of a script that will automatically log you onto a
- Color 64 BBS:
-
- timeout 5000
- waitfor hit return
- send ~
-
- timeout 5000
- waitfor (y/n)
- send Y
-
- timeout 10000
- waitfor ~>
- send ###~ (put your user number here)
-
- timeout 10000
- waitfor ~>
- send ********~ (put your password here)
-
- This script can be started in one of 3 ways. If you are using
- the built in dialer, put the script name in the dialer
- configuration. If you are using a dialer in another term program
- and running C64TERM as a script or in a shell, start C64TERM with
- the script name as the command parameter (ex. C64TERM BBSNAME).
- And finally you can start the script by pressing your Execute
- Script Alt-Key combination.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 21
-
- * * * Commodore 64 Character Codes * * *
-
- The following are a few of the more popular Commodore character
- codes. These codes can be used when programming function keys
- and scripts.
-
- CHR$ Result On Screen
-
- 5 White
- 17 Crsr Down
- 18 Rvs On
- 19 Home Crsr
- 28 Red
- 29 Crsr Right
- 30 Green
- 31 Blue
- 129 Orange
- 145 Crsr Up
- 146 Rvs Off
- 147 Clr Scrn
- 148 Insert Space
- 149 Brown
- 150 Lt Red
- 151 Dark Grey
- 152 Med Grey
- 153 Lt Green
- 154 Lt Blue
- 155 Lt Grey
- 156 Purple
- 157 Crsr Left
- 158 Yellow
- 159 Cyan
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 22
-
- * * * Shareware * * *
-
- C64 Color Terminal Emulator is being released as shareware. This
- does not mean that this is free software. What it does mean
- that you have the opportunity to try this software before you
- spend any of your hard earned money. I spent many months
- developing and debugging C64 Color Terminal Emulator and will
- probably spend many more months improving it. This shareware
- copy is not crippled or limited in operation in any way. If you
- find that this software does meet your needs, $20 is all that is
- required to register your copy. In return, you will get the
- latest version and documentation on disk along with notification
- when major updates are released.
-
- Updates will always be free if you send in a blank disk in a pre-
- addressed pre-stamped mailer. Or if you prefer, I will supply
- the disk, postage and mailer for $5.
-
- Please register your copy!
-
- Mail to: For more information:
- Greg Pfountz BBS# - 703 466 2120
- 14 Longdale Rd GEnie - COLOR64BBS
- Bristol, VA 24201
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 23
-
- C64 Color Terminal Emulator
-
-
- Registration Form
-
-
-
- Name: ________________________________________________________
-
-
- Address: ________________________________________________________
-
-
- City: ___________________________ State: _____ Zip: ________
-
-
-
-
- Total
- QTY Enclosed
-
-
- C64 Color Terminal Emulator _______ x $20.00 = ________
-
-
- Desired Disk Size (circle one): 5 1/4 3 1/2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 24
-
- * * * Update History * * *
-
- 09/23/90 V.1
-
- Beta Test Release
-
-
- 10/01/90 V.1A
-
- Fixed COM4 incorrect base address problem
-
-
- 10/02/90 V.1B
-
- Dos shell did not work on all systems. Instead of shelling out
- with the contents of COMSPEC to execute, now I shell out with
- COMMAND as the program to execute.
-
-
- 10/08/90 V.1C
-
- First public release
-
-
- 10/24/90 V.1D
-
- Fixed 'Auto adjust baud rate' to work properly at 1200 baud. On
- faster CPU's, the system was picking up NULLs between the
- characters of the connect message and confusing the program
- logic. The system now strips out all but alpha/numeric
- characters when looking for the connect messages.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C64 COLOR TERMINAL EMULATOR PAGE 25
-
-