Team Talk
Team Talk
Team Talk
USA
Neoware, Inc.
3200 Horizon Drive
King of Prussia, PA 19406
Tel: +1-610-277-8300
Fax: +1-610-771-4200
Email: info@neoware.com
UK
Neoware UK Ltd
The Stables, Cosgrove
Milton Keynes MK19 7JJ
Tel: +44 (0) 1908 267111
Fax: +44 (0) 1908 267112
Email: teem-info@neoware.com
TeemTalk
Software Support
Telephone: +1.610.277.8300
Web: http://www.neoware.com/support/
Neoware UK Ltd,
The Stables, Cosgrove,
Milton Keynes, MK19 7JJ
Tel: +44 (0) 1908 267111
Fax: +44 (0) 1908 267112
Trademarks
TeemTalk is a registered trademark of Neoware UK Ltd.
ADDS Viewpoint A2 is a trademark of Applied Digital Data Systems Inc.
D100, D200 and D410 are trademarks of Data General.
DEC, VT52, VT100, VT131, VT220, VT300, VT320, VT340, VT420, ReGIS,
DECnet, LK250 and LK450 are registered trademarks of Digital Equipment
Corporation.
Ethernet is a registered trademark of Xerox Corporation.
Hazeltine is a trademark of Esprit Systems, Inc.
HP700/92, HP2392A and HP2622A are trademarks of Hewlett Packard Company.
IBM is a registered trademark of International Business Machines Corporation.
INFOConnect and Unisys are trademarks of Unisys Corporation.
Microsoft and MS-DOS are registered trademarks, and Windows and Excel are
trademarks of Microsoft Corporation.
NEWT is a trademark of NetManage, Inc.
OSLAN is a registered trademark of ICL.
PathWay is a trademark of the Wollongong Group, Inc.
PC/TCP is a registered trademark of FTP Software, Inc.
PowerStation is a trademark of KEA Systems.
Prime is a registered trademark and PT250 is a trademark of Prime Computer, Inc.
Reflection is a registered trademark of Walker Richer & Quinn, Inc.
Retrographics and VT640 are registered trademarks of Digital Engineering, Inc.
Sun, PC-NFS and NFS are registered trademarks of Sun Microsystems, Inc.
Tandem, NonStop and LXN are trademarks of Tandem Computers Inc.
TeleVideo is a registered trademark, and TeleVideo 910, 910+ and 925 are trademarks
of TeleVideo Systems, Inc.
Tektronix is a registered trademark of Tektronix, Inc.
Westward is a registered trademark of Telemetrix, Inc.
WordPerfect is a trademark of WordPerfect Corporation.
WYSE is a registered trademark, and WY-50, WY-50+ and WY-60 are trademarks of
Wyse Technology Inc.
All other product names are trademarks of their respective manufacturers.
Contents
Contents
Introduction ....................................................... 1-1
What Is TeemTalk? ........................................................................ 1-1
About This User's Guide ............................................................... 1-2
Terms & Conventions .................................................................... 1-4
Contents-1
Contents
The Window Border & Corners ...................................................... 2-20
The Emulation Workspace .............................................................. 2-21
Default Font Sizes .................................................................... 2-21
The Text Cursor ............................................................................... 2-22
The Selection Cursor ....................................................................... 2-22
The Gin Cursor ................................................................................ 2-23
Contents-2
Contents
Contents-3
Contents
Contents-4
Contents
Contents-5
Contents
Contents-6
Introduction
1
Introduction
This chapter introduces TeemTalk terminal emulation software for
Microsoft Windows and the contents of this User's Guide.
What Is TeemTalk?
TeemTalk for Windows provides precise emulation of a wide range of industry
standard text and graphics terminals on any PC running Microsoft Windows. Multiple
concurrent sessions with different hosts can be conducted over serial RS232 lines or
local area networks (LANs) including DECnet, TCP/IP and Novell.
TeemTalk incorporates an impressive range of additional features formulated to
increase productivity and reduce network loading. These include file transfer, session
capture and replay, dynamic data exchange, a toolbar, hotspots, soft buttons, keyboard
mapping, mouse button definition, connection templates, customising capabilities, a
comprehensive script language, and an optional Application Programming Interface
(API).
1-1
Introduction
1-2
Chapter 1:
Introduction
Introduces TeemTalk for Windows and the contents of this
User's Guide.
Chapter 2:
Getting Started
Describes how to use TeemTalk and configure it for
compatibility with your hardware and the application.
Chapter 3:
Keyboard Configuration
Describes how to configure TeemTalk for your particular
keyboard, remap key functions and compose special characters.
Chapter 4:
Mouse Functions
Describes the special functions assigned to the mouse buttons
by TeemTalk and how to redefine the buttons.
Chapter 5:
The Toolbar
Describes how to use the toolbar and redefine the buttons.
Chapter 6:
Hotspots
Describes the hotspot facility which enables functions to be
performed by clicking on keywords displayed on the screen.
Chapter 7:
Setup Menus
Describes all the commands and setup dialog boxes that can
be accessed via drop-down menus in the menu bar.
Chapter 8:
File Transfer
Describes how to transfer files using the Kermit, XMODEM,
XMODEM-1K, YMODEM Batch, ZMODEM and ASCII
protocols.
Introduction
Chapter 9:
1-3
Introduction
1-4
Getting Started
2
Getting Started
This chapter describes how to run TeemTalk and configure it for
compatibility with your hardware and the application.
Running TeemTalk
To run TeemTalk, display the TeemTalk group window (or the window you specified
when installing the software) and select the icon shown below.
Mouse:
Keyboard:
Press Ctrl + Tab until the icon is selected then press Return.
The screen will display a copyright message then the TeemTalk window (shown
overleaf) in which the DEC VT100 emulation is running by default.
Quitting TeemTalk
You can quit an instance of TeemTalk in one of two ways, from the File menu when
the window is displayed, or the Control menu when the window is displayed or
iconized.
Click on File in the menu bar to display the File menu, then click the
Exit option.
Keyboard:
2-1
Getting Started
If the window is displayed, click the box or icon in the top left corner of
the window to display the Control menu, then click the Close option.
If the window is iconized, click the icon to display the Control menu
then click the Close option.
Keyboard:
2-2
Getting Started
Host Communications
Creating A Communications Session
When TeemTalk is loaded for the first time, a dialog box will be displayed which
enables you to configure TeemTalk for a serial or network host connection.
2-3
Getting Started
Note: The options in this dialog box are described in the Serial
Settings section in the Setup Menus chapter and only apply
when the connection type is set to Serial.
The status bar along the bottom of the TeemTalk window displays two LEDs. The first
LED indicates whether or not you are connected to the host. It will show red when
not connected and green when you are connected. The second LED indicates
whether or not data is being sent to or from the host. It will show dull green when
there is no activity, red when data is being sent to the host, and bright green when
data is being received from the host.
CTERM
MultiLan
Microsoft SNA
WinSock 2
ISDN
TeemTalk-OSI (option)
NetBIOS
OSLAN
TELAPI
BAPI
Interrupt 14
INT6B / NASI
LanManager
B and W. TCP
WinSock
Ext. NCSI
Eicon X25
IPX/SPX
NetWare for LAT
TeemTalk-OSI
INFOConnect
ISDN
DOSLANTI
MultiLan
2-4
Getting Started
The Services list box (in the New Connection dialog box) will display the devices on
the network which use the currently selected protocol. Click the name of the device
required or, in the case of TELAPI, enter an Internet address in the text box (for
example, 128.127.126.2). Note that either the host name or IP address may be entered
for TCP/IP connections. When Eicon X25 is selected, TeemTalk requires you to enter
a valid X25 address as none will be listed.
The Telnet Options button becomes available when a Telnet protocol is selected in
the Type list box. The dialog box displayed when this button is clicked is described
in the Setup Menus chapter.
Clicking the Connect button or the name of the host in the Services list box twice
will cause TeemTalk to attempt to connect to the specified host. If a connection cannot
be made because the network driver is not installed or the host node name is invalid,
an error message will indicate this. Failure to connect for any other reason will result
in a Connection Failed message.
The status bar along the bottom of the TeemTalk window displays two LEDs. The first
LED indicates whether or not you are connected to the host. It will show red when
not connected and green when you are connected. The second LED indicates
whether or not data is being sent to or from the host. It will show dull green when
there is no activity, red when data is being sent to the host, and bright green when
data is being received from the host.
Connection to the network host node will close if you change the settings in the New
Connection dialog box and attempt to connect, if you log out of the host, or the host
closes the connection. When the host closes the connection a message box will be
displayed giving you the option of reconnecting to the network host node, cancelling
the message box and returning to TeemTalk, or exiting TeemTalk.
A warning message will be displayed if you attempt to open a new session while a
session is already open. If you attempt to exit TeemTalk while a network session is still
active, the following message box will be displayed:
Any of these message boxes can be disabled so that the current connection is
automatically closed when the host closes the connection, a new session is opened, or
TeemTalk is exited. Refer to the Initialization Commands chapter for details.
2-5
Getting Started
2. In the Saved Items box, indicate which user preference settings are to be saved by
checking the boxes next to the relevant options.
3. In the Settings File text box, specify the name of the terminal emulation settings
file (and the directory path if different from the default) which is to store settings
only affecting the terminal emulation. The default filename is tt*w.nv where * is
05, 07 or 11, depending on your version of TeemTalk.
4. In the Save As File Name text box, specify the name of the workspace settings file
(and the directory path if different from the default) which is to store the user
preference settings selected by the Saved Items options. The default filename is
tt*w.wsp where * is 05, 07 or 11, depending on your version of TeemTalk.
Note: Splitting the saved settings into two files enables users to
share a common terminal emulation settings file while
allowing each user to have their own workspace settings
file.
2-6
Getting Started
5. In the Description text box, enter a unique description (up to 132 characters long)
which will be used to identify the connection template for future selection. This
description will also appear in the Open Session dialog box.
6. Click the OK button to save the template settings. If you specified the names of
settings files that already exist, a message box will ask you to confirm whether or
not you want to overwrite the existing files with the new settings.
"%USERPROFILE%"
"%USERPROFILE%"
The Description list box displays the one-line descriptions of connection templates
that were created using the Save Session As dialog box. The description of the
2-7
Getting Started
connection template currently in use is highlighted. The factory default connection
template is Untitled. Clicking one of the descriptions then the OK button will cause
TeemTalk to use the connection template associated with the chosen description.
You can make TeemTalk automatically use a particular connection template when it is
loaded or reset by clicking the required description, checking the Save As Default
check box, then clicking the OK button. To delete a connection template, select the
description then click the Delete button.
You can also use the following command line option to override the default
connection template used when TeemTalk is loaded:
-se"description"
where description must exactly match the description assigned to a connection
template already saved using the Save Session As dialog box. The description must be
enclosed by double-quotes.
2-8
Getting Started
To change the current emulation mode, select the emulation required then click the
OK button. The emulation setting may be saved so that TeemTalk will automatically
run it when it is loaded or reset by selecting the Save Session option in the File
menu.
A brief description of the emulation options follows.
VT52 and VT100 modes enable you to run applications written for the DEC VT52
and VT100 terminals, respectively.
Tek mode provides compatibility with software designed to drive the Tektronix 4100
or 4200 series terminals. Emulation of the Tektronix 4014 terminal can be achieved
by selecting this option and setting the Dialog Area Enabled option in the Dialog
Settings dialog box to 0.
Edit mode provides compatibility with software designed to drive the DEC VT100
terminal. In this mode the following features are set to pre-determined conditions:
A. The dialog area is enabled and visible.
B. The dialog area buffer and scrolling region are set to 24 lines.
C. Cursor origin mode is set to Absolute (refer to the description of
the Cursor Origin option in the Dialog Settings dialog box).
2-9
Getting Started
D. Insert/Replace character mode is set to Replace.
E. Keys PF1 through PF4 generate ANSI cursor movement sequences.
F. All programmed strings for keys are temporarily disabled.
VT220-7 and VT220-8 modes are emulations of the DEC VT220 terminal, the
difference is in their treatment of 8-bit control codes. When VT220-7 is selected, all
8-bit codes are converted to their 7-bit equivalents, whereas VT220-8 leaves 8-bit
codes unchanged. If you are using VT200 applications, select VT220-7.
W3220 mode provides compatibility with software designed to drive the Westward
3220 terminal.
The Tablet Type option specifies the graphics input (GIN) device that is attached to
your system and the data format that TeemTalk uses to communicate with it.
TeemTalk incorporates several tablet drivers. The following list includes the baud rate,
data bits, stop bits and parity settings that are automatically set for the tablet type
selected.
2-10
MM1201
Summagraphics MM1201
(9600, 8, 1, Odd)
MM1812
Summagraphics MM1812
(9600, 8, 1, Odd)
Getting Started
Bitpad-Plus
Summagraphics Bitpad-Plus
(9600, 7, 1, Even)
Calcomp
Mouse
Mouse
(Uses the communication settings specified
in the Serial Settings dialog box)
Click the button next to the Tablet Type required then specify the Serial Port
Device to which the Gin device is attached. You can save these settings so that
TeemTalk will automatically assert them when loaded or reset by clicking the Save
Session option in the File menu.
Refer to the Setup Menus chapter for a complete description of the Gin Settings
dialog box.
2-11
Getting Started
Title Bar
Toolbar
Text Cursor
Emulation Workspace
Minimize Button
Scroll Box
Scroll Bar
Selection Cursor
Soft Buttons
Window Border
Shutdown Button
Minimize Button
Scroll Arrow
Status Bar
Window Corner
2-12
Getting Started
To display a menu:
Mouse:
Keyboard:
Hold down the Alt key and press the key bearing the underlined
character in the menu title. For example, pressing Alt + F will display
the File menu.
When the menu bar is not displayed you can still display the menus by pressing the
following keys:
Alt + F for the File menu
Alt + E for the Edit menu
Alt + S for the Settings menu
Alt + H for the Help menu
2-13
Getting Started
When you display a menu and move the cursor over the menu options, the status bar at
the bottom of the window will change to display a brief description of the option at the
cursor position.
Refer to the Setup Menus chapter for a complete discussion on selecting and using the
options in these menus.
To close a menu:
Mouse:
Keyboard:
2-14
Getting Started
To resize the window:
Mouse:
Keyboard:
Hold down the Alt key and press the key bearing the underscored
character in one of the menu titles, for example, Alt + F. Press the right
arrow key to move the highlight over << or >> and press Return.
The Toolbar
The toolbar and associated floating button palette provide a quick way of actioning
commands or displaying setup dialog boxes by just clicking a button. TeemTalk
displays a toolbar below the menu bar by default.
The floating button palette contains the same buttons as the toolbar. You can move
and resize the palette in the same way as any other window. To convert the floating
button palette back into the toolbar, click the control menu box at the top left corner
of the palette window and select Attach. If you click the shutdown button on the
floating button palette, you can restore display of the tool buttons by selecting the
Button Tools option in the Settings menu and checking the Visible option in the
dialog box.
2-15
Getting Started
A set of soft buttons is displayed at the bottom of the TeemTalk window by default.
These can be programmed so that they perform various functions when clicked.
There are four soft button levels. Level 1 is displayed by default. Each level consists
of twelve programmable buttons, providing a combined total of 48 programmable
buttons. You can display all four levels at the same time if required. All levels are
accessible even if not all are displayed, levels stored off-screen can be 'scrolled' into
view by clicking the Level button. You can specify how many levels of soft buttons
are actually displayed by using an initialization file command or command line
option.
The soft buttons are programmed using the Soft Buttons dialog box, which is
displayed by selecting Settings in the menu bar then Soft Buttons... Refer to the
Setup Menus chapter for information on programming the buttons.
2-16
Getting Started
The soft buttons can be removed from the display by unchecking the Visible check
box in the Soft Buttons dialog box.
The soft buttons can be detached as a separate window by deselecting the Attached
option in the Soft Buttons dialog box.
If you close the Soft Buttons window, you can display it again by selecting the Soft
Buttons option in the Settings menu, checking the Visible check box, then clicking
OK.
The current position and size of the Soft Buttons window can be saved so that it is
displayed the same way the next time TeemTalk is loaded. To do this, select the Save
Session As option in the File menu, make sure the Soft Buttons option is checked in
the resulting dialog box, then click OK.
By default, the buttons displayed on level 1 are predefined with functions supported
by the Tektronix 4105 or 4207 and 4111 terminals as follows:
GErase
This will erase the contents of the graphics area and redraw all visible
segments.
DErase
This will erase all the text contained in the dialog area buffer.
DVisib
This will toggle the visibility of the dialog area on and off.
Cancel
This will halt terminal activity by resetting bypass, Gin, marker, prompt,
snoopy, and vector modes.
Setup
This will toggle the Tektronix form of setup called Primary Setup on and
off. An asterisk prompt indicates that you are in Primary Setup mode.
(Primary Setup can also be toggled on and off by pressing the keys Alt +
Z together.) Refer to the Primary Setup Mode section earlier in this
chapter for more details.
Zoom
2-17
Getting Started
If the left mouse button is clicked when the zoom cursor is displayed but
no zoom rectangles, an overview of the entire 4096x4096 display
memory will be displayed.
The zoom function can be exited without changing the window contents
by clicking the right mouse button.
After an increase or decrease in zoom, the view of the image prior to the
last redraw can be restored by clicking the RstView button. Up to four
views can be stored; clicking RstView repeatedly will recall these views
in sequence.
ViewUp
(Not supported by TeemTalk-05W.) This will save the state of the current
view then make the next higher numbered view the current view.
ViewDn
(Not supported by TeemTalk-05W.) This will save the state of the current
view then make the next lower numbered view the current view.
RstView
(Not supported by TeemTalk-05W.) This will display the last four views
when clicked repeatedly.
DefView
Patterns
This will display all the predefined fill patterns that can be selected by the
Tek Primary Setup FILLPATTERN command to fill polygons.
There are three types of fill pattern: solid, textured and dithered. A fill
pattern is selected by specifying the number of the pattern required after
the FILLPATTERN command in Primary Setup. Fill patterns are
numbered as follows:
Solid fill patterns are numbered 0 to -15, left to right.
Textured fill patterns are numbered 1 to 16, left to right.
2-18
Getting Started
Dithered fill patterns are numbered 50 to 174, left to right, top to bottom,
as follows:
Row 1:
Row 2:
Row 3:
Row 4:
Print
50 to 65
66 to 81
82 to 97
98 to 114
Row 5:
Row 6:
Row 7:
Row 8:
115 to 129
130 to 145
146 to 161
162 to 174
This will display a dialog box which enables you to produce a hardcopy
of data displayed on the screen in a specified format. Refer to the
description of the File menu Print Screen option in the Setup Menus
chapter for more information.
F1
B1
Field 1:
B2
F2
F3
F4
F5
F6
This displays two LEDs. The first LED indicates whether or not you are
connected to the host. It will show red when not connected and green
when you are connected. The second LED indicates whether or not data
is being sent to or from the host. It will show dull green when there is no
activity, red when data is being sent to the host, and bright green when
data is being received from the host.
Button 1: This enables you to switch between Local and Online mode. The label
indicates the mode TeemTalk will switch to if the button is clicked.
Button 2: This enables you to Pause or Resume scrolling data in the window. The
label indicates the action that will be taken if the button is clicked.
Field 2:
Field 3:
Field 4:
2-19
Getting Started
Field 5:
Field 6:
Place the pointer over the border at the edge or corner to be moved,
hold down the left mouse button and drag the mouse.
Keyboard:
2-20
Getting Started
2-21
Getting Started
Font
Index
DEC VT Modes
80 Cols 132 Cols
24 x 12
24 x 7
23 x 12
23 x 7
16 x 8
19 x 10
19 x 6
21 x 11
21 x 6
14 x 7
18 x 9
18 x 5
19 x 10
19 x 6
12 x 6
17 x 8
17 x 4
17 x 9
17 x 5
10 x 5
16 x 8
16 x 4
15 x 8
15 x 4
8x4
15 x 8
15 x 4
13 x 7
13 x 4
7x3
14 x 7
14 x 4
12 x 7
12 x 4
7x3
13 x 6
13 x 3
12 x 6
12 x 3
7x3
12 x 5
12 x 3
11 x 6
11 x 3
7x3
10 x 5
10 x 3
9x5
9x3
7x3
10
8x5
8x3
7x4
7x2
7x3
11
7x5
7x3
6x3
6x2
7x3
Tek 4111
128 Cols
2-22
Getting Started
CrosshairSize=size
-xsize
2-23
Getting Started
Notes
2-24
Keyboard Configuration
3
Keyboard Configuration
This chapter describes how to configure TeemTalk for your particular
keyboard, remap key functions and compose special characters.
Introduction
TeemTalk maps the keyboard to be as near as possible to the terminal being emulated.
The illustrations on the following pages show how the 83/84 key AT, 101/102 key
Enhanced AT and DEC LK250/450 keyboard layouts are mapped in DEC VT100,
VT220, Edit and Tek modes. The mapping for other layouts can be displayed by
using the Show Map option in the Keyboard Macros dialog box as described later
in the Remapping The Keyboard section. You can remap the keyboard as required
and functions that may not be represented on the keyboard can be assigned to
specific keys.
TeemTalk for Windows 3.1x supports the Digital LK250 and LK450 keyboards, and
the KEA Systems PowerStation keyboard. If a driver for one of these is loaded,
TeemTalk scans the SYSTEM.INI file to see if the string "LK250", "LK450" or
"PowerStation" is present and maps the keyboard accordingly.
TeemTalk for Windows 95 or NT will interrogate the system registry to see if LK450
drivers are installed. If LK450 drivers are installed then the keyboard will be mapped
accordingly.
Note: When running TeemTalk with the LK250 or LK450
keyboard, it is imperative that the LED on the keyboard
labelled SPECIAL or DEC is not on. This can be toggled on
and off by pressing the keys Alt + F17 together.
3-1
3-2
F9
F8
Shift
F7
Shift
F9
Shift
F11
Shift
F13
Shift
HELP
With Shift
Shift
F6
Shift
F8
Shift
F10
Shift
F12
Shift
F14
F17
With Ctrl
F20
F18 F19
DO
Normal
F14 HELP
F12 F13
F10 F11
F7
F6
Shift
F17
Shift
F19
Ctrl + Shift
Shift
DO
Shift
F18
Shift
F20
1
Normal
ENTER
HOME
With Alt
NEXT
PREV
NUM SCRL
BREAK
LOCK LOCK
INSERT
SELECT
FIND
ESC
Keyboard Configuration
AT Keyboard Layout
DEC VT220 Mode Mapping
F2
F4
F1
F3
F1
F2
F3
F4
Keyboard Configuration
AT Keyboard Layout
Tek, VT100 & Edit Mode Mapping
3-3
3-4
F7
F6
PF1
NUMLK
EURO
F8
F14 HELP DO
F17
(SCRL)
PREVNEXT
IOUS
SELECT
F20
F19
SCRLK BREAK
FIND
F18
4
1
ENTER
PF1
HOME
NUMLK
F9
Keyboard Configuration
Enhanced AT Keyboard Layout
DEC VT220 Mode Mapping
BREAK
EURO
F2
F3
F4
BACK LINE
SPACE FEED
ESC
SCRLK BREAK
In conjunction with
PREVNEXT
IOUS
SELECT
F2
F1
FIND
F1
F3
ENTER
F4
Keyboard Configuration
3-5
3-6
F19
HOLD
EURO
F7
F8
F9
F10
PREVNEXT
IOUS
SELECT
(SCRL)
DO
FIND
HELP
F19
HOLD
F20
ENTER
F17 F18
F6
Keyboard Configuration
DEC LK250/450 Keyboard Layout
DEC VT220 Mode Mapping
BREAK
EURO
F2
F3
F4
BACK
SPACE
ESC
4
1
0
PREVNEXT
IOUS
SELECT
F1
F2
FIND
LINE
FEED
F3
ENTER
F4
SCRLK BREAK
F1
Keyboard Configuration
3-7
Keyboard Configuration
If the keyboard drivers and files have not been installed correctly the following will
be observed:
1) Displaying the Keyboard Macros dialog box will result in an incorrect keyboard
display window. The dialog box should show the LK250 layout and be titled
Digital LK250 Keyboard.
3-8
Keyboard Configuration
2) Although the alphanumeric area of the keyboard may appear to function, the
keypad, function keys and centre key cluster will not operate correctly, giving
unpredictable results.
Note: The LK250 keyboard for the PC is designed to operate in 2
modes. Mode 1 emulates an AT keyboard, and Mode 2
emulates a VT320 keyboard. The keyboard is switched
between Mode 1 and Mode 2 using Alt + F17. Mode 1 is
indicated as being active by the SPECIAL LED on the top
right hand side of the keyboard. TeemTalk requires the
keyboard to be in Mode 2 (VT320). Mode 1 disables certain
function keys.
Keyboard Nationality
When running TeemTalk for Windows 3.1x, the factory default keyboard nationality
is determined by the Keyboard Layout setting in the International dialog box within
the Microsoft Windows Control Panel. You can specify a different nationality while
TeemTalk is running and save it so that it is reassserted each time TeemTalk is loaded
or reset. When you exit TeemTalk the keyboard nationality will revert back to that
specified in the International dialog box.
When running TeemTalk for Windows 95 or NT, the factory default keyboard
nationality is determined by the system locale setting. You can specify a different
nationality while TeemTalk is running and save it so that it is reassserted each time
TeemTalk is loaded or reset. When you exit TeemTalk the keyboard nationality will
revert back to that specified in the locale.
To change the current nationality, display the Terminal Settings dialog box by
selecting Settings in the menu bar then Terminal...
The Keyboard Language option enables you to specify the nationality of the
keyboard being used. It is important that this is correct otherwise the characters
displayed may not match the key legends. Select the nationality required in this list
box then click the OK button to action the change and close the dialog box. If you
want to save the setting, display the File menu and select Save Session.
Cursor Keys
The cursor (arrow) keys on some keyboards will only function when the Alt key is
held down. This applies to IBM PC or any keyboards which do not have a separate
cluster of four cursor keys.
3-9
Keyboard Configuration
To enable the cursor keys permanently so that the Alt key does not have to be held
down when you want to use them, press the keys Alt + Num Lock together so that
the Num Lock indicator is not lit. To make the cursor keys generate their numeric
values again, press Alt + Num Lock. The Num Lock indicator should be lit.
Two keyboard layouts are displayed. The upper layout corresponds to the keyboard
you are using, which will be one of the following: 101 key, 102 key, 84 key, Digital's
LK250 or LK450, or KEA Systems' PowerStation, depending on the type specified
within Microsoft Windows Setup for your PC.
Note: When an LK250, LK450 or PowerStation keyboard driver is
loaded, the SYSTEM.INI file is scanned by TeemTalk to see
if the string "LK250", "LK450" or "PowerStation" is
present and maps the keyboard accordingly.
The lower layout represents the keyboard associated with the terminal currently
being emulated, as specified in the Emulation Settings dialog box.
3-10
Keyboard Configuration
You can show how TeemTalk has mapped your keyboard within the current terminal
emulation mode by setting the Keyboard Action option (between the two layouts) to
Show Map, then moving the pointer over a key in the lower layout and holding down
the left mouse button. The key or combination of keys which emulate the function of
the key you are currently pressing will be displayed in the upper layout as if pressed
in.
Note: Control key functions are not shown.
TeemTalk provides two quick and easy ways of changing the default keyboard
mapping to suit your requirements.
3-11
Keyboard Configuration
The Predefined Macros option at the bottom of this dialog box enables you to select
from a list of standard functions associated with the current terminal emulation.
Clicking the arrow button will display a list box in which the names of valid key
functions (called virtual key names) are shown.
Note: The Virtual Key Names appendix lists all the functions and
associated virtual key names for each terminal emulation.
Before making a selection from this list box, click the pointer in the text box next to
the key combination that will be required to perform the function, that is, Normal
(key pressed on its own), Shift (key shifted) etc. For example, to assign the Help key
function to the key combination Alt + F1, click the pointer in the text box next to Alt,
display the Predefined Macros list box and scroll through the selection until
VT_HELP is displayed, click the pointer on it then click the Apply button. The
current function of the Alt + F1 key combination will be replaced with the Help
function, indicated in the text box by <VT_HELP>. If you want the mapping of this
key to be saved when you perform a Save Session, make sure the Non-Volatile box
is checked. Click the OK button to activate the change and close the dialog box. Note
that you will now have two keys which emulate the same function, the default
mapping and the mapping you have just specified. You can either leave them this
way or assign a new function to the key which was mapped by default.
When you have finished remapping the keyboard, click the OK button in the
Keyboard Macros dialog box to close it and cause TeemTalk to assert the changes.
You can save the new keyboard mapping so that TeemTalk will reassert it each time it
is loaded or reset by displaying the Save Session As dialog box, selecting the
Keyboard Macros option, then clicking the OK button.
Programming A Key
Most of the keys on the keyboard may be programmed with up to five definitions
each. Keys that cannot be redefined include Shift, Caps Lock, Alt, Alt Gr and Print
Screen. Both Ctrl keys can be redefined.
To program a key, click the key in the upper layout (which represents your
keyboard). The Define Key Macro dialog box will be displayed. This dialog box
shows the current definitions of all the following combinations for the selected key:
Key
Shift + Key
Control + Key
Control + Shift + Key
Alt + Key
Each key combination may contain a string of up to 127 characters. The combined
total of all the characters that may be programmed into keys is determined by the 127
character limit per definition and the amount of memory available in your PC.
3-12
Keyboard Configuration
All keyboard macros can be saved so that TeemTalk will reassert them each time it is
loaded or reset by displaying the Save Session As dialog box from the File menu,
selecting the Keyboard Macros option, then clicking the OK button.
3-13
Keyboard Configuration
For example, to program the A key so that when it is pressed it performs the same
function as pressing the keys F2 then F3 then F4 enter the following characters in the
relevant text box:
<F2><F3><F4>
3-14
Keyboard Configuration
Euro Sign
TeemTalk enables you to generate the euro sign from the keyboard by pressing the
keys Alt + 4 by default. TeemTalk also provides a cross-mapping mechanism to allow
any unused character symbols or string to be cross-mapped to display the euro. This
means, for instance, that a host application needing to display the euro could be
adjusted to send an unused character or character string, which TeemTalk would
convert to the euro symbol. Keyboard mapping is also configurable to allow the input
to the application to be similarly cross-mapped. The cross-mapping configuration is
specified in the Euro Currency Symbol dialog box which is displayed by clicking
the Euro Sign button in the Define Key Macro dialog box.
TeemTalk also provides the ability to print the euro symbol on printers that are euro
compliant, or to send a set of sequences that approximate to that symbol on non-euro
compliant printers. Similarly, data can be copied to or pasted from other Microsoft
Windows desktop applications that are also euro compliant.
3-15
Keyboard Configuration
Equivalent Character
'
"
'
*
Acute accent
Umlaut
Grave accent
Ring mark
Apostrophe
Double quote
Single quote
Asterisk or degree sign
To compose a character, first find the character you wish to compose in the left hand
column of the following tables. The two characters shown in the right hand column
are the keys that are used to create it. Several alternatives may be given for
generating the same character. A compose sequence is initiated by pressing the keys
Alt + I together, followed by the key bearing the first character then the key bearing
the second character.
Note: The compose character sequence can also be initiated by
pressing a key defined with the COMPOSE virtual key
name.
A compose character sequence may be abandoned before completion by pressing the
Delete key. Pressing Alt + I (or the key defined with the COMPOSE virtual key
name) again before completing a compose character sequence will cause it to be
abandoned and a second sequence to be started. An invalid compose character
sequence will cause the bell to sound.
The following tables use several conventions:
The keys bearing the characters used to compose a special character may be
pressed in any order unless (in order) is specified.
If a nationality is specified with the character description, for example
(Dutch), then the character can only be composed when the Multinational
option in the Emulation Settings dialog box is not selected.
3-16
Keyboard Configuration
COMPOSE CHARACTER SEQUENCES
"
quotation mark
space
feminine ordinal
indicator
a-
number sign
++
double open
angle brackets
<<
'
apostrophe
' space
degree sign
a a or A A
(Multinational)
or A A or a A
(National)
plus or
minus sign
+-
superscript 2
2^
superscript 3
3^
micro sign
/u
commercial at
aa
0^
(Multinational)
(National)
opening bracket
((
back slash
//
closing bracket
))
paragraph sign
p!
circumflex
accent
^ space
centred period
.^
grave accent
` space
superscript 1
1^
opening brace
(-
masculine
ordinal indicator
o_
vertical line
/^
double closed
angle brackets
>>
closing brace
)-
/4
fraction
one quarter
14
/2
fraction
one half
12
34
/<
or /
(in order)
tilde
~ space
inverted !
!!
/4
cent sign
fl
Florin (Dutch)
fl
pound sign
ij
i j sign (Dutch)
ij
yen sign
inverted ?
??
section
sign
A grave
A`
A acute
A'
A circumflex
A^
A tilde
A~
currency sign
copyright sign
xo
x0
co
c0
or
or
or
or
XO
X0
CO
C0
or
P!
or
O_
(in order)
c / or C /
c | or C |
l - or L l = or L =
y - or Y y = or Y =
s o or S O or s !
S ! or s 0 or S 0
A_
space
or
or
(in order)
(in order)
(in order)
(in order)
3-17
Keyboard Configuration
COMPOSE CHARACTER SEQUENCES (continued)
3-18
U circumflex
U^
A*
or A
(degree sign)
U umlaut
U"
or
A E diphthong
AE
Y umlaut
(DEC Multinat.)
Y"
or
C cedilla
/u
German small
sharp s
ss
E grave
E`
a grave
a`
E acute
E'
a acute
a'
E circumflex
E^
a circumflex
a^
E umlaut
E"
a tilde
a~
I grave
I`
a umlaut
a"
or
I acute
I'
a ring
a*
I circumflex
I^
a e diphthong
ae
I umlaut
I"
c cedilla
c,
N tilde
N~
e grave
e`
O grave
O`
e acute
e'
O acute
O'
e circumflex
e^
O circumflex
O^
e umlaut
e"
O tilde
O~
i grave
i`
O umlaut
O"
i acute
i'
O E diphthong
(DEC Multinat.)
OE
(in order)
i circumflex
i^
O slash
O/
i umlaut
i"
U grave
U`
n tilde
n~
U acute
U'
o grave
o`
A umlaut
A"
A ring
or
(in order)
or /
(in order)
or
or
or
or a
(degree sign)
(in order)
(comma)
or
or
Keyboard Configuration
COMPOSE CHARACTER SEQUENCES (continued)
o acute
o'
u grave
u`
o circumflex
o^
u acute
u'
o tilde
o~
u circumflex
u^
o umlaut
o"
u umlaut
u"
or
o e diphthong
(DEC Multinat.)
oe
y umlaut
y"
or
o slash
o/
or
(in order)
3-19
Keyboard Configuration
Notes
3-20
Mouse Functions
4
Mouse Functions
This chapter describes the special functions assigned to the mouse
buttons by TeemTalk and how to redefine the buttons.
Introduction
TeemTalk assigns a variety of special functions to the mouse buttons. Each button can
be used to action up to six functions when pressed in conjunction with modifier keys.
The following table lists the functions assigned to each button and key combination
by default.
Normal
Shift
Control
Control + Shift
Alt
Double Click
Left Button
Right Button
Select
Edit Copy
Extend Selection
Edit Paste
Action Hotspot
Show Hotspots
Select Rectangle
Unassigned
Send CR
Send Keyword
Select Word
Unassigned
4-1
Mouse Functions
Send CR
Send Keyword
Middle Button
Select Rectangle
Select Word
Select and Copy
Cursor Select
You can also enter a definition of your own in the text box associated with each
button and key combination. Definitions are entered in the same way as for keyboard
macros and soft buttons, as described in the Setup Menus chapter.
The setting of the Highlight When Actioned option determines whether or not a
visual indication is given that a function has been actioned when a hotspot is clicked.
The Edit... button becomes active when you select the Show Hotspots or Action
Hotspot setting. Clicking the Edit... button will open a text editor window in which
the contents of the current hotspot definition file will be displayed. This enables you
to make changes without having to leave TeemTalk. The text editor used by default is
notepad.exe. You can specify a different text editor by modifying the Editor= line in
the TeemTalk private profile file.
4-2
Mouse Functions
mouseEdit=off or mouseEdit=disabled
Command line:
-me0
-me1
-me2
When the mouse editing functions are disabled, use the Edit menu options or the
following keyboard commands to copy and paste instead:
Copy: Shift + Delete (i.e. Numeric keypad . key)
Paste: Shift + Insert (i.e. Numeric keypad 0 key)
4-3
Mouse Functions
Send Keyword
The Send Keyword function enables you to click on any delimited word displayed
on the screen and it will be sent to the host, as long as the word is not already defined
as a hotspot. Keyword delimiters are the same as for hotspots by default, that is:
space, NULL, / , : = ( ) [ and ].
4-4
The Toolbar
5
The Toolbar
This chapter describes how to use and redefine the toolbar and associated floating button palette.
5-1
The Toolbar
The floating button palette contains the same buttons as the toolbar. You can move and
resize the palette in the same way as any other window. To convert the floating button
palette back into the toolbar, click the control menu box at the top left corner of the
palette window and select Attach. If you click the shutdown button on the floating
button palette, you can restore display of the tool buttons by selecting the Button
Tools option in the Settings menu and checking the Visible option in the dialog box.
5-2
The Toolbar
Displays the Print Screen dialog box for producing a hardcopy
of screen data in a particular format.
Displays the Attributes dialog box. This enables you to specify
the colours used in the dialog area and how text with attributes is
displayed.
Displays the Keyboard Macros dialog box. This shows the
mapping of your keyboard and enables you to redefine the
function of keys.
Displays the Soft Buttons dialog box for redefining the buttons
at the bottom of the TeemTalk window.
Displays the Mouse Button Actions dialog box for assigning
up to six functions to each mouse button.
Increases the size of the window to the next font size up while
retaining the same number of rows and columns.
Decreases the size of the window to the next font size down
while retaining the same number of rows and columns.
Displays the Button Tools dialog box for redefining the
toolbar.
Erases the contents of the graphics area and redraws all visible
segments.
5-3
The Toolbar
5-4
The Toolbar
Up to 64 button tools can be defined, all of which can be displayed in the floating
button palette but only one row of buttons can be displayed in the toolbar. The
maximum number of buttons that can be displayed in the toolbar depends on the
display resolution and the size of the window.
A button tool is defined in two stages. The first stage is to specify the button bitmap
for display in the toolbar and the second stage is to assign a function to it.
5-5
The Toolbar
You are not restricted to the set of predefined button bitmaps displayed in the Buttons
list box. You can add your own customised buttons to the bottom of the list by
clicking the Add Custom... button. This will display the Load Custom Bitmap
dialog box which enables you to select a bitmap file from which a button will be
automatically generated.
Specify the name of the bitmap file to use then click the OK button. The dialog box
will close and you will see the new button bitmap highlighted at the bottom of the
Buttons list box.
If you want to delete a custom button from the Buttons list box, select the button
bitmap then click the Delete Custom button. DO NOT click the Delete Current
button as this will remove the currently selected button tool from the toolbar. Note
that you cannot delete the predefined button bitmaps displayed by default.
5-6
The Toolbar
5-7
The Toolbar
5-8
Hotspots
6
Hotspots
This chapter describes the hotspot facility which enables functions to be
performed by clicking on keywords displayed on the screen.
Using Hotspots
TeemTalk incorporates a user-definable hotspot facility which enables you to invoke a
function by clicking the mouse pointer over a keyword displayed on the screen. For
example, an application may display information relating to keys you can press to
perform a particular function. Instead of pressing the key on the keyboard, you could
invoke the function by moving the mouse pointer over the displayed key name,
holding down the Control key and clicking the Left mouse button.
Hotspots are supported in ALL terminal emulation modes. TeemTalk provides a set of
default keywords for each mode. These keywords relate to key functions specific to
the emulation. For example, in VT200 mode you can click on the word Help
displayed on the screen and TeemTalk will execute the function associated with the
Help key.
You can identify hotspots that are currently present in display memory by holding
down the Control key and the Right mouse button (assuming default mouse
configuration). All colour attributes will be temporarily removed from the display and
the hotspots will be highlighted with a red background. Releasing the keys will return
the display to its original state.
In summary, the following key and mouse button combinations are used to identify
and action hotspot functions by default:
Identify hotspots:
6-1
Hotspots
Defining Hotspots
Hotspot keywords and associated functions are specified in a text file which has the
same name (and is in the same directory) as the current workspace file but with the
extension .hot instead of .wsp. For example, the default hotspot definitions supplied
with TeemTalk-07W32 are stored in the file tt07w.hot. If you specify a different
workspace file name in the Save Session As dialog box and save the current settings,
TeemTalk will automatically make a copy of the current hotspot file and give it the
new workspace name if a hotspot file with the same name does not already exist.
Note: A hotspot file may not necessarily be in use, in which case
TeemTalk will not attempt to create a new hotspot file with
the new workspace file.
You can view the contents of the hotspot file currently in use without leaving
TeemTalk by displaying the Mouse Button Actions dialog box, selecting one of the
hotspot options (from a drop down list box if necessary), then clicking the Edit...
button.
The format of entries in the hotspot definition file is as follows. Each hotspot
definition is entered on a separate line and definition lines are grouped under
headings which specify the terminal emulation mode in which they will take effect.
The following definition line examples are taken from the tt07w.hot file supplied
with TeemTalk-07W32.
[Separators]
Separators= /,:=()[]
[Definitions]
F1=<VK_F1>
F2=<VK_F2>
[Definitions,VT52]
[Definitions,VT200 7-Bit]
F6=<VT_F6>
F7=<VT_F7>
The first command group, headed [Separators], specifies the displayed characters
which delimit the hotspot keyword. Delimiters include SPACE and NULL as well as
the characters shown in the example by default. The end delimiter does not need to
be the same as the first. Delimiters are necessary to prevent hotspots occuring within
words that happen to contain the same formation of characters as the keywords.
The following command groups specify the keywords used in each terminal emulation mode. Keyword definitions that can apply to all modes are specified under the
heading [Definitions]. Keyword definitions that apply to a specific mode are
specified under the heading [Definitions,<emulation>], where <emulation> must be
the name of the terminal emulation mode as already specified in the default hotspot
6-2
Hotspots
definitions file. Note that a keyword definition under a [Definitions,<emulation>]
heading will override the definition given to the same keyword in any other definitions group when that particular emulation is running.
Each keyword definition line consists of the keyword immediately followed by an
equals (=) sign, then the function that it will perform. The keyword can consist of any
characters except those specified as delimiters in the Separators= line. TeemTalk will
search for the keyword on a case insensitive basis.
The function that will be performed when the keyword is selected is specified in the
same way as for key macros, soft buttons and script language programming.
6-3
Hotspots
together with + characters and ending with the > character. For example, to define the
keyword Help so that when it is clicked it performs the same function as pressing the
keys Alt + F4 together, enter the following line in the relevant Definitions command
group:
Help=<ALT+F4>
To define a keyword so that it will perform the same function as pressing a sequence
of keys one after the other, enter each virtual key name in the order required,
enclosing each name with the < and > characters. Each enclosed virtual key name
must immediately follow the previous enclosed virtual key name with no spaces. For
example, to define the keyword Command so that when it is clicked it performs the
same function as pressing the keys F2 then F3 then F4, enter the following:
Command=<F2><F3><F4>
6-4
Setup Menus
7
Setup Menus
This chapter describes the options available in the setup menus and
dialog boxes.
7-1
Setup Menus
To display a menu:
Mouse:
Keyboard:
Hold down the Alt key and press the key bearing the underlined
character in the menu title. For example, pressing Alt + F will display
the File menu.
When the menu bar is not displayed you can still display the menus by pressing the
following keys:
Alt + F for the File menu
Alt + E for the Edit menu
Alt + S for the Settings menu
Alt + H for the Help menu
To close a menu:
Mouse:
Keyboard:
7-2
Setup Menus
To select a menu option:
Mouse:
Keyboard:
Dialog Boxes
Selecting an option which is followed by an ellipsis (...) will cause a dialog box to be
displayed. The example shown below is displayed by selecting the Dialog... option in
the Settings menu.
There are four basic methods for making selections within the dialog boxes.
Options preceded by a check box, such as Auto Wrap in the example above, are true
or selected when the box contains a or X, and false or unselected when the box is
empty. Click the pointer in the box to toggle the setting on or off.
When a group of options preceded by round buttons are enclosed in a box, such as
the Cursor Origin options in the example above, only one of these options is
selected or true at any one time. The currently selected option is indicated by a button
with a dark centre. These buttons behave just like radio buttons in that clicking one
will cause the previously selected button to be deselected.
Some options require you to type information in a text box, such as the Dialog Area
Lines option.
7-3
Setup Menus
When an option has many possible settings, these will be shown in a list box. The
Baud Rate option in the Serial Settings dialog box is an example of this. To make a
selection using the mouse, click the arrow button to display a drop-down list box then
click on the setting required. If the list is long a scroll bar may be displayed. To make
a selection using the keyboard, press the up or down arrow keys to cycle through the
available settings until the one required is highlighted in the box.
Click the check box, button or list box. The current setting is highlighted or surrounded by a dotted rectangle, or both.
Keyboard:
Press the Tab key to move forward through the options (left to right,
top to bottom), or Shift + Tab to move backwards, until the required
option is highlighted or surrounded by a dotted rectangle, or both. Press
the Spacebar to toggle check boxes or buttons on or off.
Keyboard:
Press the Tab or Shift + Tab keys to move the cursor until it rests over
the Cancel button and press Return or the Spacebar.
Keyboard:
Press Return.
Default Settings
TeemTalk is supplied with the setup options set to factory default. If these have been
altered since and you wish to reassert the original settings of all the options, display
the File menu and select the Factory Default option.
Some dialog boxes include a Default button to enable the factory default settings of
options contained in the dialog box to be reasserted.
7-4
Setup Menus
2. In the Saved Items box, indicate which user preference settings are to be saved by
checking the boxes next to the relevant options.
3. In the Settings File text box, specify the name of the terminal emulation settings
file (and the directory path if different from the default) which is to store settings
only affecting the terminal emulation. The default filename is tt*w.nv, where * is
either 05, 07 or 11, depending on your version of TeemTalk.
Note: There is no need to specify file extensions as defaults are
applied when the files are created.
4. In the Save As File Name text box, specify the name of the workspace settings
file (and the directory path if different from the default) which is to store the user
preference settings selected by the Saved Items options. The default filename is
tt*w.wsp, where * is either 05, 07 or 11, depending on your version of TeemTalk.
Note: Splitting the saved settings into two files enables users to share
a common terminal emulation settings file while allowing each
user to have their own workspace settings file.
7-5
Setup Menus
5. In the Description text box, enter a unique description (up to 132 characters long)
which will be used to identify the connection template for future selection. This
description will also appear in the Open Session dialog box.
6. Click the OK button to save the template settings. If you specified the names of
settings files that already exist, a message box will ask you to confirm whether or
not you want to overwrite the existing files with the new settings.
7-6
"%USERPROFILE%"
"%USERPROFILE%"
Setup Menus
The Description list box displays the one-line descriptions of connection templates
that were created using the Save Session As dialog box. The description of the
connection template currently in use is highlighted. The factory default connection
template is Untitled. Clicking one of the descriptions then the OK button will cause
the dialog box to close and TeemTalk to use the connection template associated with
the chosen description.
You can make TeemTalk automatically use a particular connection template when it is
loaded or reset by clicking the required description, checking the Save As Default
check box, then clicking the OK button. To delete a connection template, select the
description then click the Delete button.
You can also use the following command line option to override the default
connection template used when TeemTalk is loaded:
-se"description"
where description must exactly match the description assigned to a connection
template already saved using the Save Session As dialog box. The description must
be enclosed by double-quotes.
7-7
Setup Menus
Menu Descriptions
The following pages describe the options available in all the menus and associated
dialog boxes. The descriptions begin by showing the menu or dialog box as it is
displayed on the screen. The factory default setting is shown below each option title
where applicable.
File Menu
Factory Default...
This will make TeemTalk reassert all the original settings that it had when you first
installed it. A message box will be displayed asking you to confirm whether or not
you want to assert the factory default settings. Click the OK button to assert the
factory defaults or Cancel to cancel the selection.
7-8
Setup Menus
Reset Terminal
This will reset the current terminal emulation mode.
New Connection...
Factory default: Serial, Com 1
This will display a dialog box which enables you to make a serial or network host
connection.
7-9
Setup Menus
The status line along the bottom of the window displays two LEDs. The first LED
indicates whether or not you are connected to the host. It will show red when not
connected and green when you are connected. The second LED indicates whether or
not data is being sent to or from the host. It will show dull green when there is no
activity, red when data is being sent to the host, and bright green when data is being
received from the host.
CTERM
MultiLan
Microsoft SNA
WinSock 2
ISDN
TeemTalk-OSI (option)
NetBIOS
OSLAN
TELAPI
BAPI
Interrupt 14
INT6B / NASI
LanManager
B and W. TCP
WinSock
Ext. NCSI
Eicon X25
IPX/SPX
NetWare for LAT
TeemTalk-OSI
INFOConnect
ISDN
DOSLANTI
MultiLan
7-10
Setup Menus
The status line along the bottom of the window displays two LEDs. The first LED
indicates whether or not you are connected to the host. It will show red when not
connected and green when you are connected. The second LED indicates whether or
not data is being sent to or from the host. It will show dull green when there is no
activity, red when data is being sent to the host, and bright green when data is being
received from the host.
Connection to the network host node will close if you change the settings in the New
Connection dialog box and attempt to connect, if you log out of the host, or the host
closes the connection. Warning messages will be displayed if the host closes the
connection, or you attempt to open a new session or exit TeemTalk while a session is
open. These message boxes can be disabled using initialization file commands or
command line options. Refer to the Initialization Commands chapter for details.
Open Session...
This enables you to select a connection template for TeemTalk to use. The following
dialog box will be displayed.
The Description list box displays the one-line descriptions of connection templates
that were created using the Save Session As dialog box. The description of the
connection template currently in use is highlighted. The factory default connection
template is Untitled. Clicking one of the descriptions then the OK button will cause
TeemTalk to use the connection template associated with the chosen description.
You can make TeemTalk automatically use a particular connection template when it is
loaded or reset by clicking the required description, checking the Save As Default
check box, then clicking the OK button. To delete a connection template, select the
description then click the Delete button.
Close Session
This will close the current session.
7-11
Setup Menus
Save Session
Selecting this option will cause the current session configuration to be saved to the
connection template specified in the Save Session As dialog box.
Save Session As...
This will display a dialog box which enables you to save the current session
configuration as a connection template.
TeemTalk enables you to create multiple connection templates, any one of which can
be used either when TeemTalk is loaded or while it is running. The procedure is as
follows:
1. In the Saved Items box, indicate which user preference settings are to be saved
by checking the boxes next to the relevant options.
2. In the Settings File text box, specify the name of the terminal emulation settings
file (and the directory path if different from the default) which is to store settings
only affecting the terminal emulation. The default filename is tt*w.nv, where * is
either 05, 07 or 11, depending on your version of TeemTalk.
Note: There is no need to specify file extensions as defaults are
applied when the files are created.
3. In the Save As File Name text box, specify the name of the workspace settings
file (and the directory path if different from the default) which is to store the user
preference settings selected by the Saved Items options. The default filename is
tt*w.wsp, where * is either 05, 07 or 11, depending on your version of TeemTalk.
Note: Splitting the saved settings into two files enables users to share
a common terminal emulation settings file while allowing each
user to have their own workspace settings file.
7-12
Setup Menus
4. In the Description text box, enter a unique description (up to 132 characters long)
which will be used to identify the connection template for future selection. This
description will also appear in the Open Session dialog box.
5. Click the OK button to save the template settings. If you specified the names of
settings files that already exist, a message box will ask you to confirm whether or
not you want to overwrite the existing files with the new settings.
Startup Options...
The following dialog box will be displayed when this option is selected.
This enables you specify whether TeemTalk is to make a host connection using the
default connection template, display the New Connection dialog box, or display the
Open Session dialog box when it is loaded (but not when it is reset). Refer to the
relevant descriptions earlier in this section for information on these dialog boxes.
Clicking the Edit... button will open a text editor window in which the contents of the
TeemTalk private profile file containing startup settings will be displayed. This enables
you to make changes without leaving TeemTalk. (Note that changes will not take
effect until the next time TeemTalk is loaded.) The text editor used by default is
notepad.exe. You can specify a different text editor by modifying the Editor= line in
the command group headed [Startup] in the TeemTalk private profile file.
Note: Refer to the Initialization Commands chapter for information
on the private profile file.
Capture File...
This will display a dialog box which enables you to specify the name of a file in which
all following data received from the host will be logged.
Clicking the OK button after entering the name of the file will cause all data received
from the host to be stored in this file until the Cancel Capture option (which
replaces the Capture File option during a capture session) is selected. The contents
of this file can be played back later by selecting the Replay File... option.
7-13
Setup Menus
Replay File...
Factory default: *.*
This option will display a dialog box which enables you to replay the contents of a file
previously created by the Capture File... option.
Enter the name of the file to be replayed in the Replay File Name text box, or
alternatively select a file name in the list box below, specify whether the replay is
directed to the emulation (default) or host, then click the OK button.
To cancel a file replay, select the Cancel Replay option which replaces the Replay
File option while a file is being replayed.
File Transfer...
This option provides access to the file transfer utility. Refer to the File Transfer
chapter for details.
FTP...
This option provides access to the FTP file transfer utility. Refer to the FTP File
Transfer chapter for details.
Printer Setup...
This displays a dialog box which enables you to select any printer that is configured
in Microsoft Windows instead of just the default printer.
Note: You can specify a different printer which TeemTalk will use
by default instead of that specified in the Control panel by
including the printer details on a device= line in the
initialization file.
7-14
Setup Menus
The currently selected printer is the TeemTalk default printer if specified, or the printer
specified in the Control panel, when the dialog box is displayed for the first time after
TeemTalk is loaded or reset, otherwise it is the printer that was last used.
Selecting a printer other than the default printer will enable the Save New Default
option. If you click the OK button when this option is selected, the currently
highlighted printer will become the new default printer. If you want to keep the
original printer as the default, uncheck this box before clicking OK.
The Microsoft Windows Print Manager normally controls all print formatting,
translates host characters to supported printer characters, and also provides a spooling
facility. A disadvantage of using the Print Manager is that any print formatting escape
sequences received from the host are stripped. The Through Print Action options
enable you overcome this problem.
If you want to use the Print Manager but disable its print formatting process so that the
original escape sequences from the host are retained, select both the Use Print
Manager and PassThru options. (Note that the PassThru option will be
unselectable if the printer driver currently selected does not support this facility.)
If you want to bypass the Print Manager, deselect the Use Print Manager option.
The FormFeed Terminator and Translate National Characters options will
become available. Selecting the FormFeed Terminator option will cause the printer
to advance the paper to the top of the form when it has finished printing. The setting
of the Translate National Characters option determines whether or not the ISO
Latin characters used by Microsoft Windows are translated to IBM characters for the
printer.
If you find a through print results in data being split into lines, each treated as a
separate print job, specify a time in the Seconds Close Delay box (e.g. 5 seconds).
This will enable the next line of data to be sent before the print job is assumed to
have finished and therefore prevents the print job from being closed prematurely.
When Auto Line Feed is selected, every carriage return command will be followed
by a line feed command.
The Setup... button enables you to display the Microsoft Windows Print Setup
dialog box for the currently selected printer. This includes a Fonts... button which
enables you to change the font settings. The "Courier New" 11 point font will be used
by default.
Note: The Printer Setup option will be unselectable if no printer
is installed or if the Status option in the Microsoft Windows
Printers dialog box is set to Inactive.
Print Screen...
This will display a dialog box which enables you to produce a hardcopy of data
displayed on the screen in a particular format.
7-15
Setup Menus
The Text option is selected by default and the printer resolution and scaling options
are not accessible. Clicking the OK button with Text selected will cause a fast print of
the screen using ASCII text codes, therefore any graphics displayed in the TeemTalk
client area will not be printed.
Note: The virtual key name VT_PRINT will also cause this dialog
box to be displayed.
Selecting Graphics will print all the data in the TeemTalk client area, both graphics
and text, when the OK button is clicked. The hardcopy output will be an almost exact
representation of the client area. Note that a graphics print will take a lot longer than
a text print.
The Use Printer Resolution option is available when Graphics print is selected.
This will force a dot for dot print of the screen on the printer and generally produces a
small print, depending on the printer resolution. When this option is not selected
(unchecked), TeemTalk will try and print as large an image as possible on the printer's
paper. Both methods can print in landscape or portrait format, depending on the
current setup of the printer.
The Centre Image on Paper option is available when Graphics print is selected.
This will ensure that the graphics image is printed centrally on the paper.
The Scaling option is available when Graphics print is selected. This enables the
image to be scaled to suit your preference. When the Use Printer Resolution option
is selected, you can scale the image up, and when unselected you can scale the image
down. (Scaling up when Use Printer Resolution is not selected may result in loss of
some of the image.)
The Graphics Image option is available when Graphics print is selected. This
enables you to specify how the graphics image is to be printed. Clicking the arrow
button next to the text box will cause four print options to be displayed.
7-16
Setup Menus
These options allow you to print the graphics image as displayed (Normal by default),
with black and white reversed, with colour converted to monochrome, or colour
converted to monochrome with black and white reversed.
Once a screen print is initiated by clicking OK, another dialog box will be displayed
while the screen data is being spooled out to the print manager. This enables you to
terminate the print process before data is actually printed.
Print Buffer
This will send a copy of all the data contained in the window buffer to the currently
selected printer.
Auto Print
This toggles auto print mode on and off, as indicated by a tick when auto print mode
is on. Auto print mode causes each line of data to be transmitted to the printer when
the cursor moves to a new line as a result of a carriage return, line feed, vertical tab,
or form feed.
Cancel Print
This will cancel the current Print Screen or Print Buffer function.
Eject Page
When TeemTalk is in Auto Print or Printer Controller mode and the Use Print
Manager option in the Printer Setup dialog box is checked, this option enables data
that has been spooled to the printer to be printed. This option will be greyed
(unselectable) when TeemTalk is not in Auto Print or Printer Controller mode.
Run Script...
This will display a dialog box which enables you to run a script file.
Windows 3.1x
Windows 95 & NT
The name of the file is entered in the Script File Name text box, or alternatively you
can select a file name in the list box below.
7-17
Setup Menus
The Parameters text box enables you to specify the values of ArgV# type variables
within the script file, if required. Values are separated from each other by a comma.
You must ensure that the values are entered in the right order so that they are
assigned to the correct variables. Refer to the Initiating A Script File section in the
Creating A Script File chapter for details.
Note: If the values to be entered include sensitive data, such as a
password, you can cause the text to be displayed as
asterisks instead of normal text by using the -hs command
line option or scriptparameter=off initialization file
command.
When the name of the script file has been specified and any parameters entered, click
the OK button to run the script file. To cancel a script file, select the Cancel Script
option which replaces the Run Script option while a file is being run.
The Edit... button becomes active when you select the name of a script file. Clicking
the Edit... button will open a text editor window in which the contents of the selected
script file will be displayed. This enables you to make changes without leaving
TeemTalk.
Exit
This option will cause TeemTalk to shut down. If you attempt to exit TeemTalk while
a network session is still active, the following message box will be displayed:
This message box can be disabled so that the connection is automatically closed when
TeemTalk is exited by using the -J command line option or entering the line
warnExit=off in the initialization file.
7-18
Setup Menus
Telnet Options
This dialog box is displayed when you click the Telnet Options button in the New
Connection dialog box when any Telnet protocol is selected in the Type list box.
Note that the options available and the default settings depend on the current terminal
emulation. The '3270' and '5250' options are not applicable to this version of
TeemTalk.
Note: Many of these settings can be specified in the TeemTalk
private profile file. Refer to the Initialization Commands
chapter for details.
Port Number
This enables you to specify the Telnet port number. The default Telnet port number,
23, can be substituted with any valid 16 bit port number. Specifying a number outside
the valid range will cause the setting to default to 1.
Telnet Name
This enables you to override the name that will be reported for the terminal type over
Telnet.
Suppress Echo
When selected, this will will prevent the emulator from generating the Telnet echo
option on connection.
7-19
Setup Menus
Force Negotiation
These settings determine whether or not the Telnet Binary or EOR options are
supported. Both are set to no by default.
No
DO
DONT
Break Settings
The setting of these options determine whether or not a timing mark (TM) and/or
carriage return (CR) is sent with a Telnet break packet. A timing mark is sent by
default.
7-20
Setup Menus
Edit Menu
Clipboard Text
Clipboard Graphics
Selecting one of these options will enable selected text or graphics to be copied to the
clipboard when the Copy command is used. The Paste and Select All commands
will also be enabled. A tick will be displayed next to the option when it is selected
and the DDE commands will be disabled.
DDE Row Copy
DDE Column Copy
Dynamic Data Exchange (DDE) is a much more powerful tool than the clipboard as
it establishes a link between the copied data and the original source data so that when
changes occur to the source data, the copied data can be updated automatically so
that you do not have to copy and paste the data again. A tick will be displayed next to
the option when it is selected and the Paste command will be disabled.
The DDE Row Copy and DDE Column Copy options enable selected data to be
copied in a format suitable for applications which use cells to store information, such
as spreadsheets. When the Copy command is used, selected data will be copied so
that each line is treated as a separate cell.
The way in which each cell of data is inserted in the application's worksheet when
pasted is determined by whether the DDE Row Copy or DDE Column Copy option
was selected before the Copy command was used. DDE Row Copy will enable each
line of copied data to be pasted in a row of selected cells, and DDE Column Copy
will enable each line of copied data to be pasted in a column of selected cells.
Note: Refer to the Dynamic Data Exchange chapter for more
information.
7-21
Setup Menus
Copy
This command becomes available (ungreyed) when data has been selected. The
function of this command is determined by whether the Clipboard Text, Clipboard
Graphics, DDE Row Copy or DDE Column Copy option is selected.
When the Clipboard Text or Clipboard Graphics option is selected, this command
will cause currently selected text or graphics to be copied to the clipboard. The data
can then be inserted in a different position or another file using the Paste command.
The next block of data that is copied will delete the previous block on the clipboard.
When DDE Row Copy or DDE Column Copy is selected, various commands
representing the selected screen area will be copied to the clipboard. These
commands can be pasted to an appropriate area of the screen by another Windows
application that can interpret the commands, for example, Microsoft Excel. DDE
messages will be exchanged between TeemTalk and the application in which the
commands were pasted and, if acknowledged positively by both parties, an automatic
update will be performed from TeemTalk to the application if data in the selected area
changes.
To use the Copy option, hold down the left mouse button and move the pointer
across to the right to display additional options, as shown below.
The first option enables you to perform a standard copy. Pressing the keys Shift +
Delete together will perform the same function. The last three options are only
available when Clipboard Graphics is selected. They enable you to copy the
graphics image with black and white reversed, with colour converted to
monochrome, or both.
Note: A standard copy can also be performed by clicking the
middle mouse button on a 3-button mouse, or the right
button on a 2-button mouse.
Paste
This only functions when the Clipboard Text or Clipboard Graphics option is
selected and will cause data that has been copied to the clipboard to be pasted at the
7-22
Setup Menus
current cursor position. The same block of data may be pasted repeatedly as the
clipboard stores it until the Copy command is used again.
Note: The same function can be performed by clicking the right
mouse button on a 3-button mouse, or Shift + Left or Right
Button on a 2-button mouse, or by pressing the keys Shift +
Insert.
Select All
This will cause the window contents (not the entire buffer) to be selected.
Clear Buffer
This will erase the contents of the window and the scroll buffer.
7-23
Setup Menus
Settings Menu
Serial Settings
Terminal Settings
Dialog Settings
Gin Settings
Attributes
Keyboard Macros
Soft Buttons
Button Tools
7-24
Setup Menus
Emulation Settings
7-25
Setup Menus
VT220-7 and VT220-8 modes run emulations of the DEC VT220 terminal, the
difference is in their treatment of 8-bit control codes. When VT220-7 is selected, all
8-bit codes are converted to their 7-bit equivalents, whereas VT220-8 leaves 8-bit
codes unchanged. If you are using VT200 applications, select VT220-7.
W3220 mode provides compatibility with software designed to drive the Westward
3220 terminal.
Code 1 Selects
Factory default: ANSI
The setting of this option determines what action will be taken on receipt of an 'Enter
ANSI Mode' (Code 1) command from the host. It can be set to cause entry to the
DEC VT220 7 or 8-bit emulation instead of ANSI (VT100). This provides the same
functionality as the Tektronix DecTerminal command.
Terminal ID
Factory default: VT100
This option identifies the particular 'VT' terminal model emulated by TeemTalk in
response to a terminal identification request from the host when in any mode except
Tek.
Multinational
Factory default: Unselected
The setting of this option determines whether the national or multinational character
set is used when TeemTalk is in VT220 7 or 8-bit Alpha mode. (All other modes use
the national character set.)
When this option is unselected, the national character set which corresponds to the
keyboard language selected in the Terminal Settings dialog box will be used. Only
characters found in this character set may be generated.
When this option is selected, the multinational character set will be used. This
consists of the 7-bit ASCII character set and the 8-bit VT220 Additional character set
(as shown in the Character Sets appendix). This enables characters from all national
character sets to be generated.
Display Controls
Factory default: Unselected
The setting of this option determines whether received control codes are actioned or
displayed. When selected, a representation of most control codes will be displayed on
the screen.
7-26
Setup Menus
Serial Settings
This dialog box is displayed by selecting Serial in the Settings menu, or by clicking
the Configure... button in the New Connection dialog box when the connection type
is set to Serial or Interrupt 14. Note that the port for serial communications is
selected via the New Connection dialog box which is displayed from the File menu.
Baud Rate
Factory default: 2400
This specifies the transmit and receive baud rates for the port selected for host
communications.
Parity
Factory default: None
This option specifies the parity mode for each transmitted character. If the number of
Data Bits is 8, set this option to None.
Selecting Odd will cause an eighth bit to be added with a value of 1 if the previous 7
bits add up to an even number, and 0 if the previous 7 bits add up to an odd number.
Selecting Even will cause an eighth bit to be added with a value of 1 if the previous 7
bits add up to an odd number, and 0 if the previous 7 bits add up to an even number.
Mark parity will set every eighth bit to 1 and Space parity every bit to 0.
Flow Control
Factory default: Output
This option specifies the type of flow control used by the line port to communicate
readiness to transmit or receive data from the host.
None
Input
Output
- No flow control
- XON/XOFF on received data
- XON/XOFF on transmitted data
7-27
Setup Menus
In/Out
- XON/XOFF on transmitted & received data
Hardware - DTR/CTS hardware flow control.
Data Bits
Factory default: 8
This option specifies the number of data bits sent for each transmitted character.
Stop Bits
Factory default: 1
This specifies the number of stop bits sent for each transmitted character.
Transmit Rate
Factory default: Unlimited
The setting of this option determines the maximum effective baud rate that TeemTalk
transmits terminal reports and data sent as a result of pasting data to the host.
On Line
Factory default: Selected
When this option is selected, normal two-way communication between TeemTalk and
the host is enabled. When unselected, TeemTalk is in Local mode and data will not be
sent to, or received from the host. Data typed on the keyboard will be displayed on
the screen or actioned if a control command is typed.
Local Echo
Factory default: Unselected
The setting of this option determines whether keyboard entered characters are
displayed on the screen as well as sent to the host. When unselected, characters are
not displayed when they are transmitted unless the host 'echoes' them back.
Detect Carrier
Factory default: Unselected
This option is only valid if the script command PSET HOST DCDDETECT YES
has been specified (refer to the Creating A Script File chapter for details).
When this option is selected, TeemTalk will check to see whether a modem connection
is running. If the DCDDETECT command is not specified or set to NO, the check
will always be true.
Note: The script command PGET HOST DCDTEST can be used
to test whether DCD was present when the last character
was sent.
7-28
Setup Menus
NCSI Settings
This TeemTalk for Windows 3.1x dialog box is displayed by clicking the Configure...
button in the New Connection dialog box when the connection
type is set to Extended NCSI.
Baud Rate
Factory default: 9600
This specifies the transmit and receive baud rates in the range 50 to 115200 baud.
Parity
Factory default: None
This option specifies the parity mode for each transmitted character.
If the number of Data Bits is 8, set this option to None.
Selecting Odd will cause an eighth bit to be added with a value of 1 if the previous 7
bits add up to an even number, and 0 if the previous 7 bits add up to an odd number.
Selecting Even will cause an eighth bit to be added with a value of 1 if the previous 7
bits add up to an odd number, and 0 if the previous 7 bits add up to an even number.
Mark parity will set every eighth bit to 1 and Space parity every bit to 0.
Flow Control
Factory default: Xon/Xoff
This option specifies the type of flow control used to communicate readiness to
transmit or receive data from the host. It can be set to None, DTR, RTS, DTR/RTS
or Xon/Xoff.
7-29
Setup Menus
Data Bits
Factory default: 8
This option specifies the number of data bits sent for each transmitted character.
Stop Bits
Factory default: 1
This specifies the number of stop bits sent for each transmitted character.
Show Port Details
Factory default: Unselected
By default the Services list box will show the server name and general service (e.g.
VAX or modem) but not the port name. If the server has two or more of the same
type of service connected, for example two modems, then you can have the port
name displayed as well by selecting this option.
7-30
Setup Menus
Terminal Settings
7-31
Setup Menus
CR Implies LF
Factory default: Unselected
When selected, this will cause TeemTalk to interpret each carriage return character it
receives as a carriage return and line feed pair.
Ignore Deletes
Factory default: Unselected
The setting of this option determines whether TeemTalk ignores or actions delete
characters received from the host.
Application Keypad
Factory default: Unselected
The setting of this option determines the effect of pressing keys in the keypad on the
right side of the keyboard.
When unselected, the keypad is in numeric mode and keys will generate the
characters shown on the key caps. When selected, the keypad is in application mode
and keys will generate control functions when pressed.
Note: On some keyboards the keypad acts as both a numeric
keypad and a cursor key block depending on the setting of
some modifier, such as the Num Lock key. This option only
affects the characters generated when the keypad is acting
as a numeric keypad.
Application Cursor Keys
Factory default: Unselected
When this option is selected the cursor keys will generate application program codes
when pressed. Unselected, the keys will generate normal cursor movement
commands.
Note: On some keyboards the keypad acts as both a numeric
keypad and a cursor key block depending on the setting of
some modifier, such as the Num Lock key. This option only
affects the characters generated when the keypad is acting
as a cursor key block.
Scroll Bar on Maximize
Factory default: Selected
The setting of this option determines whether or not a scroll bar is displayed when the
window is maximized.
7-32
Setup Menus
Report Maximum Line Length
Factory default: 0
The setting of this option determines the maximum number of characters per line for
reports sent to the host. The numeric value must be in the range 0 through 65535.
This feature is disabled if 0 is specified.
Bypass Cancel Character
Factory default: ^J (LF)
This option sets the bypass mode cancellation character. Bypass mode is entered
when TeemTalk sends a report to the host so as to prevent reports echoed by the host
being actioned by TeemTalk. All characters subsequently received from the host are
discarded until the terminal receives the bypass cancel character, after which it
resumes processing received data.
If the host does not echo, then bypass mode can be disabled by specifying the
character as NULL (ASCII decimal 00) in one of the ways described in the following
paragraphs. Otherwise, set the bypass character to the last character that the host
sends when it echoes a line of text.
To change the current definition, delete the definition displayed in the text box and
type in the new one, either as the control key character equivalent or the decimal
value of the ASCII character. For example, the default ASCII character LF can be
entered by typing the characters ^ and J, representing the keys Ctrl + J which, when
pressed together would generate the LF code.
Decimal values are entered as three-digit numbers immediately preceded by an
underscore character. Values with only two digits must be preceded by a zero. For
example, the decimal value of LF is 10, so this would be entered as _010. Refer to
the ASCII character table in the Character Sets appendix for code and decimal
references.
End Of Line Characters
Factory default: ^M (CR)
This option is used to specify up to two ASCII characters in the decimal range 0
through 127 which are sent by TeemTalk at the end of reports sent to the host.
To change the current definition, delete the definition displayed in the text box and
type in the new one, either as the control key character equivalent or the decimal
value of the ASCII character. For example, the default character CR can be entered
by typing the characters ^ and M, representing the keys Ctrl + M which, when
pressed together would generate the CR code.
Decimal values are entered as three-digit numbers immediately preceded by an
underscore character. Values with only two digits must be preceded by a zero. For
example, the decimal value of CR is 13, so this would be entered as _013. Refer to
the ASCII character table in the Character Sets appendix for code and decimal
references.
7-33
Setup Menus
End Of Message Characters
Factory default: ^M (CR) and ^J (LF)
This option is used to specify up to two ASCII characters in the decimal range 0
through 127 which are sent by TeemTalk to end a line of data transmission.
To change the current definition, delete the definition displayed in the text box and
type in the new one, either as the control key character equivalent or the decimal
value of the ASCII character. For example, the ASCII character LF can be entered by
typing the characters ^ and J, representing the keys Ctrl + J which, when pressed
together would generate the LF code.
Decimal values are entered as three-digit numbers immediately preceded by an
underscore character. Values with only two digits must be preceded by a zero. For
example, the decimal value of LF is 10, so this would be entered as _010. Refer to
the ASCII character table in the Character Sets appendix for code and decimal
references.
EOM Frequency
Factory default: High
The end of message frequency specifies how often TeemTalk inserts end of line strings
into reports that it sends to the host.
Terminal
Factory default: 4207
The setting of this option determines the extent of control over text displayed in the
graphics area. Specifying 4105 will cause the Tek emulation to use string precision
text only, whereas 4207 or 4111 (depending on your version of TeemTalk) will allow
both string and stroke precision text. String precision text only consists of alpha
mode fonts. Stroke precision allows both alpha and user-defined fonts to be
displayed, and provides greater precision when slanting, rotating or sizing the text.
Answerback String
This option enables you to specify the Answerback string that is sent to the host in
response to an ANSI mode enquiry command. The string may be up to 30 characters
long.
Answerback Concealed
Factory default: Unselected
Selecting this option will cause the Answerback string specified in the text box above
to be locked from change and displayed as asterisks. Note that deselecting this option
will cause the Answerback string to be deleted.
7-34
Setup Menus
Dialog Settings
7-35
Setup Menus
Dialog Area Visible
Factory default: Selected
This option enables you to make the dialog area visible or invisible.
Cursor Origin
Factory default: Relative
The setting of this option defines the relationship between the cursor position and the
emulation workspace.
When this option is set to Absolute, the cursor position is calculated using the first
column and row of the emulation workspace as its origin, so allowing addressing
outside the current text scrolling region.
When set to Relative, the cursor position is calculated using the first column and row
of the current text scrolling region as its origin. Cursor movement is restricted to the
scrolling region.
Cursor Style
Factory default: Underline
This option enables you to specify how the text cursor is displayed, either as an
underline character or a block.
Columns
Factory default: 80
This option enables you to specify a width of 80 or 132 columns for the dialog area.
Resize Font
Factory default: Selected
This option determines the effect on displayed text when the window is resized.
When selected, resizing the window will cause TeemTalk to search a list of known
fonts and select the one that allows the same number of rows (specified by the next
option) and columns to fill the new window size. The window will be adjusted to
display all the rows.
When unselected, resizing the window will have no effect on the font size and the
number of displayed rows will be increased or decreased according to the new
window size. Note that the number of columns will remain set to 80 or 132 even
though the window may be wider, leaving a margin on the right.
Rows
Factory default: 32
This option determines the total number of text rows that may be displayed in the
window, which can be set to a maximum of 64. TeemTalk will search a list of known
fonts and select the one that allows all the specified rows to be displayed in the
7-36
Setup Menus
window. The window size will be adjusted accordingly. Note that the number of text
rows actually used for displaying dialog area text is determined by the setting of the
Dialog Area Lines option.
Dialog Area Lines
Factory default: 32
This option defines how many lines of the dialog buffer are visible on the screen in
the dialog area. The size of the text window (see Rows) and dialog buffer (see Dialog
Area Buffer) determines the maximum number of lines that can be displayed. The
minimum number of lines that can be displayed is 2.
Dialog Area Buffer
Factory default: 49
This option specifies the size of the buffer which is used to store text for display in
the dialog area. The number of lines specified must be in the range 2 through 100.
Dialog Area Enabled
Factory default: 1
The dialog area is a region on the screen in which text stored in the dialog area buffer
can be displayed. This option specifies whether the dialog area is enabled or
disabled. The dialog area is enabled when set to 1 and disabled when set to 0.
In VT52, VT100 and Edit mode, text is automatically placed in the dialog area
regardless of whether or not the area is enabled. In Tek mode with the dialog area
enabled, all alphanumeric text is placed in the dialog area buffer. In Tek mode with
the dialog area disabled, text is placed in the graphics area at the current graphics
position. This gives an emulation of the Tektronix 4014 terminal which does not
support an equivalent of the dialog area. In Primary Setup mode, all text entered from
the keyboard is displayed in the dialog area.
7-37
Setup Menus
Gin Settings
Summagraphics MM1201
(9600, 8, 1, Odd)
MM1812
Summagraphics MM1812
(9600, 8, 1, Odd)
Bitpad-Plus
Summagraphics Bitpad-Plus
(9600, 7, 1, Even)
Calcomp
Mouse
Mouse
(Uses the communication settings specified
in the Serial Settings dialog box)
7-38
Setup Menus
Gin Tablet Characters
Factory default: Z123
This option specifies the characters sent by the buttons on the mouse or tablet puck for
Gin pick and locate operations. The setting must consist of four characters or no
characters. For a mouse which only has three buttons, the first character is ignored
and subsequent characters correspond to the left, middle and right buttons.
Map Mouse To Joystick
Factory default: Enabled
When this option is selected, any Gin operations which enable or disable the joystick
or keyboard cursor keys will also enable or disable the mouse.
7-39
Setup Menus
Attributes
This dialog box is displayed by selecting Attributes in the Settings menu. It enables
you to specify the colours used in the dialog area and how text with attributes is
displayed.
To change the way a screen element is displayed, select the relevant item from the
Screen Element list box, for example, Bold (BD) for characters with the bold
attribute. The settings of the other options in the dialog box will change to reflect the
settings currently assigned to the screen element, and the Sample Text window will
show how the screen element is actually displayed with these settings.
Text with attributes can be displayed in various ways. For example, characters with
the underline attribute can be displayed as standard (e.g. underlined only), as a
particular colour only (e.g. green without the underline), or with both attribute and a
specific colour (e.g. underlined and green). The Attribute options allow you to
enable or disable any of the attributes normally associated with the currently selected
screen element. The setting of the Use Colours option determines whether or not a
specific colour is assigned to the text attribute.
When the Use Colours option is selected, the colour of the screen element can be
changed by clicking on the required colour block in the palette of Foreground and/
or Background colours. The two palettes enable you to specify a different colour for
text (foreground) and text cell (background). The set of 16 colours displayed can be
customized using the Colour Palette dialog box which is described later.
The following sections describe items in the Attributes dialog box in more detail.
7-40
Setup Menus
Screen Element
This list box enables you to select the screen element for definition.
Normal
Screen
Bold (BD)
Underline (UL )
Flashing (FL)
Inverse (IV)
UL+BD
FL+BD
FL+UL
IV+FL
IV+BD
IV+UL
FL+BD+UL
IV+UL+BD
IV+FL+BD
IV+FL+UL
IV+FL+BD+UL
Attribute
The list of attribute options allow you to enable or disable the actual display of
attributes associated with the selected screen element. Text with the bold attribute
may be displayed as such by checking the Font box when the Screen Element is set
to one of the bold options. Note that text display will be slower when Font is selected
to display characters with the bold attribute as bold instead of a substitute colour.
Use Colours
When selected, the currently selected screen element will be displayed in the colours
highlighted in the Foreground and Background colour palettes. For default display,
deselect this option.
Swap Black/White
Factory default: Unselected
This option is not applicable to TeemTalk-05W, -07W or -11W and will therefore be
unselectable.
Inverse Colours
Factory default: Unselected
When this option is selected, characters with the inverse attribute will have the text
(foreground) colour swapped with that of the text cell (background).
AutoColour
Factory default: Unselected
This option is not applicable to TeemTalk-05W, -07W or -11W and will therefore be
unselectable.
Ansi Colours Disabled
Factory default: Unselected
This option is not applicable to TeemTalk-05W, -07W or -11W and will therefore be
unselectable.
7-41
Setup Menus
Colours Cleared With Attributes
Factory default: Unselected
This option is not applicable to TeemTalk-05W, -07W or -11W and will therefore be
unselectable.
Attributes Use Normal BG
Factory default: Unselected
This option is not applicable to TeemTalk-05W, -07W or -11W and will therefore be
unselectable.
This provides two methods for specifying a different colour, one visual and the other
numeric. All the settings initially displayed relate to the colour selected in the
Attributes dialog box. When you start changing any of the settings, the Set Colour
box will display the original colour on the left and the new colour on the right.
7-42
Setup Menus
Visual Method
The full range of colours available is displayed in the large colour selection box. A
target cursor is positioned over the currently selected colour. To select a new colour
you can either click the mouse pointer over the colour required or drag the target
cursor over it. The right hand colour of the Set Colour box will change accordingly.
The lightness of the selected colour can be altered by dragging the triangular pointer
up or down the vertical bar to the right. When you have finished, click OK to apply
the change or Cancel to cancel it and return to the Attributes dialog box.
7-43
Setup Menus
Keyboard Macros
This dialog box is displayed by selecting Keyboard Macros in the Settings menu.
The Keyboard Macros dialog box enables you to redefine the function of most of the
keys on your keyboard and shows the mapping of the keyboard for the current
terminal emulation mode.
Two keyboard layouts are displayed. The upper layout corresponds to the keyboard
you are using, which will be one of the following: 101 key, 102 key, 84 key, Digital's
LK250 or LK450, or KEA Systems' PowerStation, depending on the type specified
within Microsoft Windows Setup for your PC.
Note: When an LK250, LK450 or PowerStation keyboard driver is
loaded, the SYSTEM.INI file is scanned by TeemTalk to see
if the string "LK250", "LK450" or "PowerStation" is
present and maps the keyboard accordingly.
The lower layout represents the keyboard associated with the terminal currently
being emulated, as specified in the Emulation Settings dialog box.
Keyboard Mapping
You can show how TeemTalk has mapped your keyboard within the current terminal
emulation mode by setting the Keyboard Action option (between the two layouts) to
7-44
Setup Menus
Show Map, then moving the pointer over a key in the lower layout and holding down
the left mouse button. The key or key combination which emulate the function of the
key you are currently pressing will be displayed in the upper layout as if pressed in.
Note: Control key functions are not shown.
TeemTalk provides two quick and easy ways of changing the default keyboard
mapping to suit your requirements.
7-45
Setup Menus
The Predefined Macros option at the bottom of this dialog box enables you to select
from a list of standard functions associated with the current terminal emulation.
Clicking the arrow button will display a list box in which the names of valid key
functions (called virtual key names) are shown.
Note: The Virtual Key Names appendix lists all the functions and
associated virtual key names for each terminal emulation.
Before making a selection from this list box, click the pointer in the text box next to
the key combination that will be required to perform the function, that is, Normal
(key pressed on its own), Shift (key shifted) etc. For example, to assign the Help key
function to the key combination Alt + F1, click the pointer in the text box next to Alt,
display the Predefined Macros list box and scroll through the selection until
VT_HELP is displayed, click the pointer on it then click the Apply button. The
current function of the Alt + F1 key combination will be replaced with the Help
function, indicated in the text box by <VT_HELP>. If you want the mapping of this
key to be saved when you perform a Save Session, make sure the Non-Volatile box
is checked. Click the OK button to activate the change and close the dialog box. Note
that you will now have two keys which emulate the same function, the default
mapping and the mapping you have just specified. You can either leave them this
way or assign a new function to the key which was mapped by default.
When you have finished remapping the keyboard, click the OK button in the
Keyboard Macros dialog box to close it and cause TeemTalk to assert the changes.
You can save the new keyboard mapping so that TeemTalk will reassert it each time it
is loaded or reset by displaying the Save Session As dialog box, selecting the
Keyboard Macros option, then clicking the OK button.
Programming A Key
Most of the keys on the keyboard may be programmed with up to five definitions
each. Keys that cannot be redefined include Shift, Caps Lock, Alt, Alt Gr and Print
Screen. Both Ctrl keys can be redefined.
To program a key, click the key in the upper layout (which represents your
keyboard). The Define Key Macro dialog box will be displayed. This dialog box
shows the current definitions of all the following combinations for the selected key:
Key
Shift + Key
Control + Key
Control + Shift + Key
Alt + Key
Each key combination may contain a string of up to 127 characters. The combined
total of all the characters that may be programmed into keys is determined by the 127
character limit per definition and the amount of memory available in your PC.
7-46
Setup Menus
All keyboard macros can be saved so that TeemTalk will reassert them each time it is
loaded or reset by displaying the Save Session As dialog box from the File menu,
selecting the Keyboard Macros option, then clicking the OK button.
7-47
Setup Menus
7-48
Setup Menus
Euro Sign
TeemTalk enables you to generate the euro sign from the keyboard by pressing the
keys Alt + 4 by default. TeemTalk also provides a cross-mapping mechanism to allow
any unused character symbols or string to be cross-mapped to display the euro. This
means, for instance, that a host application needing to display the euro could be
adjusted to send an unused character or character string, which TeemTalk would
convert to the euro symbol. Keyboard mapping is also configurable to allow the input
to the application to be similarly cross-mapped. The cross-mapping configuration is
specified in the Euro Currency Symbol dialog box which is displayed by clicking
the Euro Sign button in the Define Key Macro dialog box.
TeemTalk also provides the ability to print the euro symbol on printers that are euro
compliant, or to send a set of sequences that approximate to that symbol on non-euro
compliant printers. Similarly, data can be copied to or pasted from other Microsoft
Windows desktop applications that are also euro compliant.
7-49
Setup Menus
Soft Buttons
This dialog box is displayed by selecting Soft Buttons in the Settings menu.
A set of soft buttons is displayed at the bottom of the TeemTalk window by default.
These can be programmed so that they perform various functions when clicked.
The soft button display can be switched on or off using the Visible check box.
The soft buttons can be detached as a separate window by deselecting the Attached
option.
There are four soft button levels. Level 1 is displayed by default. Each level consists
of twelve programmable buttons, providing a combined total of 48 programmable
buttons. You can display all four levels at the same time if required. All levels are
accessible even if not all are displayed, levels stored off-screen can be 'scrolled' into
view by clicking the Level button.
You can specify how many levels of soft buttons are actually displayed by using the
following initialization file command or command line option:
Initialization file command:
Command line option:
7-50
buttonlevels=0-4
-bl0-4
Setup Menus
All four levels can be displayed by specifying 4. Specifying 0 will cause no soft
buttons to be displayed.
You can assign a title to the definition set which will be displayed in the leftmost
button in the second row by entering it in the Title text box. The title can consist of
up to seven characters.
By default the buttons on level 1 are defined with functions relating to the Tek
emulation, as described in the Getting Started chapter. You can redefine these
buttons to perfrom other functions if required. Note that the Tek functions assigned to
buttons 6 through 10 by default are not supported by TeemTalk-05W.
7-51
Setup Menus
7-52
Setup Menus
when the button is clicked, you would enter the following in the B4 Command text
box:
<"tt07w">
(tt07w is the window class name for TeemTalk-07W.)
7-53
Setup Menus
This dialog box is displayed by selecting Mouse Button Action in the Settings menu.
This enables you to specify the function of the left and right mouse buttons when they
are pressed on their own or in conjunction with modifier keys. You can assign up to
six functions to each button. Clicking one of the arrow buttons will display a dropdown list box which lists all the standard functions that can be assigned:
Unassigned
Select
Extend Selection
Edit Copy
Edit Paste
Show Hotspots
Action Hotspot
Move Cursor
Send CR
Send Keyword
Middle Button
Select Rectangle
Select Word
Select and Copy
Cursor Select
The Select function will select all text from the start position to the finish position,
working left to right across the entire width of the display, whereas the Select
Rectangle function will only select text contained within the rectangular area defined
by the start position (top left corner) and the finish position (bottom right corner). The
Select and Copy function is the same as Select but will also copy the selected data to
the Clipboard automatically. The Select Word function will cause the word under the
mouse cursor to be selected.
The Show Hotspots and Action Hotspots functions are described in the Hotspots
chapter. The Send Keyword function is very similar to the hotspot feature. It enables
you to send delimited text displayed on the screen to the host just by clicking on it.
7-54
Setup Menus
Delimiters are the same as for hotspots.
The Move Cursor function can be used in any of the local block modes as a quick
way of positioning the text cursor within a block of text. Move the mouse cursor to
the position where the text cursor is required then click the mouse button (and key
combination) assigned with the Move Cursor function to cause the text cursor to
jump to that location.
The Cursor Select function performs the same way as Move Cursor.
The Middle Button setting enables you to make the left or right button (and key
combination) of a two button mouse emulate the middle button of a three button
mouse.
You can also enter a definition of your own in the text box associated with each
button and key combination. Definitions are entered in the same way as for keyboard
macros and soft buttons.
The setting of the Highlight When Actioned option determines whether or not a
visual indication is given that a function has been actioned when a hotspot is clicked.
The Edit... button becomes active when you select the Show Hotspots or Action
Hotspot setting. Clicking the Edit... button will open a text editor window in which
the contents of the current hotspot definition file will be displayed. This enables you
to make changes without having to leave TeemTalk. The text editor used by default is
notepad.exe. You can specify a different text editor by modifying the Editor= line in
the TeemTalk private profile file.
7-55
Setup Menus
Button Tools
This dialog box is displayed by selecting Button Tools in the Settings menu.
This enables you to redefine the button tools displayed in the toolbar or floating button
palette. Up to 64 buttons can be defined. For a complete description of how to use the
toolbar and floating button palette, refer to the chapter entitled The Toolbar.
A button tool is defined in two stages. The first stage is to specify the button bitmap
for display in the toolbar and the second stage is to assign a function to it.
7-56
Setup Menus
Specify the name of the bitmap file to use then click the OK button. The dialog box
will close and you will see the new button bitmap highlighted at the bottom of the
Buttons list box.
If you want to delete a custom button from the Buttons list box, select the button
bitmap then click the Delete Custom button. DO NOT click the Delete Current
button as this will remove the currently selected button tool from the toolbar. Note
that you cannot delete the predefined button icons displayed by default.
7-57
Setup Menus
Help Menu
Help Contents
Selecting this option will display a help window listing the contents of help for
TeemTalk. Clicking an underlined topic or pressing Tab to highlight the topic then
pressing Enter will cause the window to display information on that topic.
Text that has a continuous underline will cause another topic to be displayed when
clicked, while text with a dotted underline will display a small temporary window
with a description of the term.
How To Use Help
This option will display a window which provides information on how to use help.
About TeemTalk...
Selecting this option will cause a dialog box to be displayed in which details of your
version of TeemTalk will be shown. To close the box, click the OK button.
7-58
File Transfer
8
File Transfer
This chapter describes how to transfer files using the Kermit,
XMODEM, XMODEM-1K, YMODEM Batch, ZMODEM and
ASCII protocols.
Introduction
TeemTalk includes a file transfer utility which enables two-way file transfer between
the host and your PC. A range of file transfer protocols are supported to provide
compatibility with virtually any host computer. Several transfers may be run
simultaneously in the background while you continue to use other Windows
applications.
Protocols Supported
Kermit
Kermit is a packet-oriented file transfer protocol which enables binary files to be
transferred between 7 and 8 bit systems. Multiple file transfers and data compression
is supported.
XMODEM
XMODEM is a block-oriented protocol which enables a single file to be transferred
at a time in 128 byte blocks. It uses two-way communications and checks for errors
using a cycling redundancy check unless the host does not respond, in which case a
checksum is used.
XMODEM-1K
XMODEM-1K is similar to XMODEM, but uses 1024 byte data blocks, speeding up
transmission.
8-1
File Transfer
YMODEM Batch
YMODEM Batch is similar to XMODEM-1K, but enables several files to be
transferred. It checks for errors using a cycling redundancy check only.
ZMODEM
ZMODEM is an advanced development of YMODEM which enables much faster
multiple file transfer with enhanced error detection and aborted transfer resumption.
The zmodemStartup initialization command or -zm command line option can be
used to make TeemTalk check incoming data for a remote ZMODEM startup sequence
then automatically start a file transfer.
Note: XMODEM, YMODEM Batch and ZMODEM require a
communication setting of 8 data bits, 1 stop bit and no
parity. These settings will automatically be used for the
transfer, after which the original settings will be reasserted.
ASCII
ASCII file transfer enables characters to be sent with no handshaking (unless XON/
XOFF is enabled) or error checking.
ICL FTF
The ICL FTF protocol supported by TeemTalk for Windows 3.1x can be used in any
terminal emulation mode. It requires the DOSLANTI TSR to be loaded, but it is not
necessary for the user interface providing you do not attempt to initiate a transfer.
Refer to the ICL FTF File Transfer chapter for details on how to use it.
8-2
File Transfer
Sending Files
The following procedure is used to transfer files from your PC to the host.
1. Start the transfer procedure on the host computer and specify that
files are to be received.
2. Display the TeemTalk File menu on your PC and select File
Transfer... to display the Initiate File Transfer dialog box.
8-3
File Transfer
7. Specify the directory which contains the file(s) for transfer in the
right list box by clicking on one of the path options and clicking
the Select button until the full directory path displayed above the
list box is correct. The files contained in this directory will be
displayed in the left list box.
8. Display the name(s) of the file(s) to send in the left list box, either
by using the scroll bar or by specifying a filename type (e.g. *.exe
for all files ending with .exe) in the Search specification text box
then pressing Return or clicking the Select button.
Note: Using the Search function will cause all filenames
displayed in the list box to be automatically selected.
9. Select the file to send by clicking on the filename in the left list
box to highlight it. If more than one file is to be sent, hold down
the Ctrl key while clicking each additional filename. If the files
for selection are listed contiguously, point to the first file then
hold down the Shift key while dragging the mouse.
10. Once all files to send have been highlighted, click the Send
button to start transferring data to the host. A window will be
displayed showing how the file transfer is progressing. The
transfer will continue until all selected files have been received
by the host or the transfer is cancelled (refer to the Cancelling A
File Transfer section later).
8-4
File Transfer
Receiving Files
The following procedure is used to transfer files from the host to your PC.
1. Start the transfer procedure on the host computer and specify that
files are to be sent.
2. Display the TeemTalk File menu on your PC and select File
Transfer... The Initiate File Transfer dialog box will be
displayed.
8-5
File Transfer
6. If the kermit protocol is being used and the host kermit is in
remote mode, click the Remote button in the Initiate File
Transfer dialog box, then the Get button in the Remote
Operations dialog box to specify the file to be received,
otherwise, click the Receive button in the Initiate File Transfer
dialog box.
Note: The program waits for the arrival of one or more files from
the host.
7. Click the Start button. If you selected the XMODEM,
XMODEM-1K or ASCII protocol, a dialog box will be displayed
in which you specify the name of the file to be received. All the
other protocols do not require this as the filename is provided by
the sender.
When the transfer begins, a window will be displayed indicating
the status of the file transfer.
8-6
File Transfer
Clicking the Cancel button will display another dialog box with four cancel options.
Selecting Cancel File then clicking the YES button will cause transfer of the current
file to be cancelled by sending a 'Cancel File' message.
Selecting Cancel Batch then clicking YES will cause transfer of the current file and
all remaining files to be cancelled by sending a 'Cancel Batch' message.
Selecting Cancel Nicely then clicking YES will stop the transfer by sending an error
packet with a 'Transfer Cancelled' message.
Selecting Cancel Abrubtly then clicking YES will stop the transfer immediately
without any messages being sent.
Clicking the NO button will close the Cancel dialog box.
8-7
File Transfer
Clicking the General... button in the Initiate File Transfer dialog box will cause the
General Parameters dialog box to be displayed. This enables you to set various
parameters for any of the transfer protocols.
Once the settings have been selected, the initialization file can be modified to reflect
the changes under the heading [TeemTalkFTU,Kermit] by checking the Save
Settings box then clicking the OK button.
Timer
Factory default: Selected
When this option is selected, if no packets have been received for a certain period of
time then a retry will be attempted. The protocol will be exited if the number of
retries exceeds that specified by the Retry limit option.
Warning bell
Factory default: Selected
When this option is selected, an audible tone will sound when a transfer is completed
or cancelled.
Discard partial file
Factory default: Selected
This option determines what happens to a file when an error condition occurs or the
Reset or Cancel button is clicked during a file transfer. When selected, the part of the
file already transferred will be deleted. When unchecked, the part of the file that has
been transferred will be kept.
8-8
File Transfer
Duplicate file warning
Factory default: Selected
When this is selected, if an incoming file has the same name as an existing one it will
be renamed to avoid overwriting it. A unique generation number will append or
replace part of the old name.
Send delay for first packet
Factory default: 0
The setting of this option determines the length of time in seconds before the first
packet is sent when sending a file. The time delay can be set to any number of
seconds between 0 and 63, inclusive.
Retry limit
Factory default: 10
The setting of this option determines the number of retries that will be performed
before the protocol is exited. The retry limit can be set to any number between 1 and
63, inclusive.
8-9
File Transfer
Kermit Parameters
Clicking the Kermit... button in the Initiate File Transfer dialog box will cause the
Kermit Parameters dialog box to be displayed. This enables you to set parameters
specific to the Kermit protocol.
Once the settings have been selected, the initialization file can be modified to reflect
the changes under the heading [TeemTalkFTU,Kermit] by checking the Save
Settings box then clicking the OK button.
Most of the settings in this dialog box affect how outbound and inbound packets are
treated. These settings may need to be reflected by the remote Kermit as well.
Start of Packet
Factory default: CTRL-A (i.e. SOH)
This specifies the character which is used to mark the start of a Kermit packet. The
character should be changed if the remote host intercepts it.
Timeout in secs
Factory default: 5
This specifies how long the remote Kermit should wait before timing out.
Padding count
Factory default: 0
This specifies the number of padding characters to be sent before the packet.
Padding char
Factory default: CTRL-@ (i.e. NULL)
This specifies the character to use for padding.
8-10
File Transfer
End of line char
Factory default: CTRL-M (i.e. CR)
This specifies the character which terminates the packet.
Quote char
Factory default: #
This specifies the character used to indicate that the next character is in the decimal
range 0 - 31, 128 - 159, or is a delete character (127).
Packet size
Factory default: 80
This specifies the maximum byte size of a packet from the sequence number byte and
including the checksum characters.
Checksum Type
Factory default: 1-Byte
This specifies the type of checksum computation used. 1-Byte and 2-Byte selects the
standard Kermit 1-byte and 2-byte checksum computations, respectively. 3-ByteCRC selects a cyclic redundancy checksum computation which is useful when
operating on noisy lines or transferring large packets.
Prompt For Filename
Factory default: Unselected
This option enables you to specify a different file name for each received file.
When enabled, a dialog box will be displayed before each file is sent when
performing a Kermit Send File from the host. The dialog box displays the name of
the file about to be transferred and gives you the opportunity to change it. If the
filename is acceptable, clicking the OK or Cancel button will cause the transfer to
continue, using the filename displayed. If you wish to change the name of the file,
edit the name in the text box before clicking OK. Clicking Cancel will revert back to
the original filename.
Force Print of File
Factory default: Unselected
Selecting this option will cause data received as part of a Kermit transfer to be
directed to the printer (through print) instead of a file.
8-11
File Transfer
ASCII Parameters
Clicking the ASCII... button in the Initiate File Transfer dialog box will cause the
ASCII Parameters dialog box to be displayed. This enables you to set parameters
specific to the ASCII protocol.
Once the settings have been selected, the initialization file can be modified to reflect
the changes under the heading [TeemTalkFTU,ASCII] by checking the Save
Settings box then clicking the OK button.
Note: The ASCII protocol has additional parameters which can be
set in another dialog box by pressing the General... button.
This dialog box was described earlier.
CR Translation
Factory default: CR
This determines how carriage return characters are interpreted. When set to None, all
carriage returns are removed before data is transferred. When set to CR, carriage
returns are transmitted as they are. When set to CR/LF, every carriage return
character will be appended with a line feed character.
Note: On a PC most text files are delimited by a CR/LF sequence,
whereas most mainframes and other systems expect ASCII
files delimited only with a CR.
LF Translation
Factory default: LF
This determines how line feed codes are interpreted. When set to None, all line feeds
are removed before data is transferred. When set to LF, line feeds are transmitted as
they are. When set to LF/CR, every line feed character will be appended with a
carriage return character.
8-12
File Transfer
Line Pacing Character
Factory default: None
This specifies the pacing character used to indicate that the host or PC is ready to
receive the next line of data.
Line Pacing Time
Factory default: 0
This specifies the time in 1/10 seconds that the program will pause between each line
transmission.
Expand Blank Lines
Factory default: Unselected
The setting of this check box determines how the host interprets blank lines
encountered in a data transmission.
When the box is unchecked, lines will be uploaded as they exist. The host will
interpret a blank line as an end of message marker.
When the box is checked, a space will be added to lines that contain only a CR or
CR/LF code. This enables lines of text to be spaced out.
8-13
File Transfer
ZMODEM Parameters
Clicking the Zmodem... button in the Initiate File Transfer dialog box will cause the
ZMODEM Parameters dialog box to be displayed. This enables you to set
parameters specific to the ZMODEM protocol. The Send settings inform the remote
end how to treat the data that will be sent to it. The Receive settings will override any
Send settings specified at the remote end.
Once the settings have been selected, the initialization file can be modified to reflect
the changes under the heading [TeemTalkFTU,ZMODEM] by checking the Save
Settings box then clicking the OK button.
The zmodemStartup private profile file command or -zm command line option can
be used to make TeemTalk check incoming data for a remote ZMODEM startup
sequence then automatically start a file transfer using the settings specified in this
dialog box. Note that the transfer protocol selected in the Initiate File Transfer
dialog box will be ignored.
Data Conversion
Factory default: None
This specifies whether or not the file being transferred is converted to ASCII or
Binary format at the receiving end, or remains unchanged (None).
8-14
File Transfer
The Resume option enables you to send the remainder of a file if the transfer process
is interrupted, for example if data blocks were missed or the connection was lost.
This saves you having to retransmit the entire file again.
File Transfer Action
Factory default: Default
This specifies what action is to be taken by the receiving end on files that are
transferred.
Selecting Default will use the action specified by the receiving end.
Newer or Longer will cause files to be transferred if they do not exist in the
destination directory and will replace files with the same name if the transfer files are
more recent or contain more data.
CRC Different will cause the source and destination files to be compared and files
will only be transferred if the file lengths or polynomials differ.
Append will cause the contents of the transfer file to be appended to the end of the
file with the same name in the destination directory.
Replace will cause the contents of the transfer file to replace that of the file with the
same name in the destination directory
Newer will cause files to be transferred if they do not exist in the destination
directory and will replace files with the same name if the transfer files are more
recent.
Length Differs will cause files to be transferred if they do not exist in the destination
directory and will replace files with the same name if the file sizes or dates differ.
Absent will cause files to be transferred if they are absent from the destination
directory.
Receive Existing File Only
Factory default: Unselected
When this option is selected, only files with the same name in the destination
directory are transferred.
Change . to / in Filename
Factory default: Unselected
This option enables you to specify that all . (period) characters in the name of a
transfer file are converted to / (forward slash) characters.
Send Full Pathname
Factory default: Unselected
The setting of this option determines whether or not the full pathname associated
with a transfer file is sent.
8-15
File Transfer
Remote Command
Factory default: Not specified
This enables you to enter a command that will be sent to the remote end to initiate the
file transfer. If a remote command is specified, this will be sent to the host with a
terminating carriage return character before the transfer is started.
Window Size
Factory default: 8192
When a file transfer has been initiated, ZMODEM will send data continuously to the
receiving end. If the receiving end is slower, then data will be stored on the network.
This may cause a problem if an error occurs because the message will take longer to
get through to the sender due to the amount of data still waiting on the network.
This option enables you to overcome the problem by limiting the amount of data that
is stored on the network before waiting for an acknowledgement from the receiver.
The window size relates to the network area taken up by the transfer data. A setting
of 0 (zero) specifies that the window size is unlimited. Any other numeric value
entered here will be rounded to 256 bytes or the nearest multiple of 64 if higher.
Escape Control Codes
Factory default: Unselected
The setting of this option determines whether control codes are sent on their own
(default) or preceded by the escape code CTRL X.
The escape code prevents problems caused by the removal of control codes during
transmission. When this option is selected, control codes are sent as readable
characters preceded by CTRL X.
8-16
File Transfer
When Kermit is selected as the transfer protocol, the Remote button in the Initiate
File Transfer dialog box provides access to commands that enable you to perform
various operations on the host. Kermit has to be operating in server mode on the host
for remote commands to function. A command is initiated by selecting it in the
Kermit Remote Operations dialog box then clicking the Action... button.
Most commands will cause a dialog box to be displayed in which you have to enter
information, though if the OK button is not initially dimmed then the information is
not essential for the command to function. A window will display the results of
commands. If the results are extensive, an Edit window will display them, enabling
you to edit and even transfer them to another Windows application.
Get
This will display a dialog box in which you specify the name of a file to be obtained
from the host.
Command
This enables you to specify a command which is to be executed by the host. The
command must be entered using a valid syntax for the host.
Change Dir
This enables you to specify a different working directory for the host and enter your
password. If no directory is specified, the host will execute its default action for this
command. UNIX will enter the home directory.
8-17
File Transfer
Directory
This enables you to specify which filenames are listed from the host's working
directory. Clicking OK when nothing has been specified will cause all filenames to
be displayed.
Erase
This enables you to specify the names of files to be deleted from the host's working
directory.
Help
This enables you to specify the topic on which help is required. If nothing is entered
then clicking OK will cause the remote commands understood by the host to be
displayed.
Space
This enables you to specify the area for the host to display disk usage information on.
Type
This enables you to specify the names of files to be typed on the host.
Who
This enables you to enquire who is currently using the host.
Finish
When this command is actioned, the remote Kermit will exit server mode.
Logout
This command will execute a logout on the remote host.
Bye
This command will execute a logout on the remote host and close the Kermit
program.
8-18
File Transfer
Local Operation
Clicking the Local button in the Initiate File Transfer dialog box will display a
dialog box which enables you to specify the default local directory for sending and
receiving files. The current directory is displayed at the bottom of the dialog box.
The Specification text box is used to specify which files in the current directory are
displayed in the Files selection box. For example, to display all the files with the
extension .exe, type *.exe then click the Dir / cd button.
To change the current directory, scroll through the available directories in the
Directories list box, then either click the name of the directory once so that it is
highlighted and click the Dir / cd button, or double-click the name of the directory.
The Files list box will be updated accordingly and the new directory will be
displayed at the bottom of the dialog box. Click the Cancel button to action the
change and close the dialog box.
Note: The Cancel button in this particular dialog box functions as
an OK button.
8-19
File Transfer
Notes
8-20
9
ICL FTF File Transfer
This chapter describes the ICL FTF file transfer utility supported by
TeemTalk for Windows 3.1x in all terminal emulation modes.
Configuration Requirements
1. FTF requires the DOSLANTI TSR to be loaded, but it is not necessary for the user
interface, providing you do not attempt to initiate a transfer.
2. The list of hosts that can be selected from the FTF dialog box depends on entries in
the private profile file OSLANSVF.INI. This file is described in the OSLAN
section of the Network Connection chapter in the Networking Guide. The
LocalTSAP, RemoteTSAP and RemoteLSAP entries for each host must be as
shown in the example below.
[nigelpc]
RemoteDteAddress=020723feda67
LocalTSAP=0881
- this entry must be the same for all hosts
RemoteTSAP=0882 - this entry must be the same for all hosts
RemoteLSAP=fe
- this entry must be the same for all hosts
3. For an ICL host system to initiate file transfers to FTF it is necessary that the
TFRFOUT command is used. The FTTEXTOPTION parameter should be set
to the following:
"RECPRESERVE=NO,TFORMATING=0001"
4. The following line must be inserted under the Protocol VCSTS section of
NET.CFG:
LOCAL_LSAP
0xFE
9-1
Note: If you close this dialog box, you can display it again by
clicking the Start button in the Initiate File Transfer dialog
box when Transfer Protocol is set to ICL FTF.
3. Select the name of the remote host in the Host Name list box.
4. If you need to provide Authorisation for the remote host, enter the
required User Name and User Password. Note that the password will
be echoed as a series of asterisks.
5. In the Local Filename text box, specify the name and directory path
of the file on your PC that is to be sent to the remote host or written to,
depending on the transfer direction. You can either type in the
filename or click on Browse to view the PC's directory structure and
make a selection. Note that if you only enter the filename and not the
directory, then FTF will assume the file is in the directory in which
TeemTalk was installed.
6. In the Remote Filename text box, specify the name of the file on the
remote host that is to be read or written to, depending on the transfer
direction. This can be the same name as the local filename.
9-2
You can maximize the book icon at any time to display information on the state
of the transfer. When the transfer is in progress a count of bytes transferred is
updated. Any messages relating to the transfer, such as failure messages from the
remote file transfer responder, are displayed in the window.
9-3
Transfer Options
This dialog box is displayed by clicking the During Transfer... button in the FTF
dialog box.
Text Formatting
Factory default: Negotiate
This specifies the method of formatting text during the file transfer. Clicking on the
arrow button will display a list of all the formatting methods supported from which
you can make a selection.
9-4
EOR=>, no FEs
EOR=>NL+FEs
EOR=>NP+NL
EOR=>NP+FEs
NL
Negotiate
No formatting
9-5
9-6
This dialog box is displayed by clicking the At Remote Host... button in the FTF
dialog box.
Remote File Operation
Factory default: Make or replace
This specifies what operation should be performed on the file. Click on the arrow
button to display a list of operations supported, then double-click to select the mode
you want to use. The modes which are available are as follows:
Make
The file must not exist on the remote system and will be
created. If the file is being sent to VME, this will cause a new
generation to be created if the file already exists.
Replace
The file must already exist on the remote system and it will be
replaced by the file to be transferred.
Make or replace
Append
The file must exist on the remote system and the data
transferred will be appended to it.
Make or append
9-7
Read and remove The file must exist on the remote system. After being
transferred to the local system, it will be deleted on the
remote system.
Read
Destructive read
The file must exist on the remote system and will be erased as
it is transferred to the local system. This mode may not be
supported by the remote responder.
File Password
This text box enables you to enter a file password if one is required before you are
allowed to do a file transfer.
Information Message
This text box enables you to enter a message that may be logged in the remote system's journal, depending on the remote implementation.
Account
This text box enables you to specify an account if required before you can do a file
transfer.
Account Password
This text box enables you to enter an account password if one is required before you
are allowed to do a file transfer.
Output Device Type
This enables you to specify the device to be used for output when you selected Print
for the remote file operation. If you are transmitting to VME, the value of this parameter is a property associated with the device to be used for output as specified in the
unit description.
Output Device Qualifier
This text box enables you to enter a qualifying string to the device to be used for
output when you selected Print for the remote action. If you are transmitting to VME
this will be interpreted as an identifier for printer stationery.
9-8
PRE
FDE
For new fully catalogued files, the description used will be :STD.STDM, modified by
one or more of the following values, provided that at least one of them is supplied:
BLO
CLA
RMI
RMA
RTY
ORG
BLOCKSIZE
CLASS
RMIN
RMAX
RTYPE
ORG
LOC For spool requests, defines the location at which the output is required.
PRF
For spool (VME/B only) and job requests, defines the profile under
which they should run.
Action Message
The message entered in this text box may be displayed to the remote operator when
the transfer begins, depending on the remote system (not for VME).
9-9
Notes
9-10
10
FTP File Transfer
This chapter describes the FTP file transfer utility for TCP/IP
connections.
10-1
2. To make a remote host connection, display the Connection dialog box either by
clicking the following button in the toolbar, or by selecting Connect to Host in
the Session menu.
3. Enter the Host name, Login details and Password relevant for the host you wish
to connect to (on some systems you may be required to enter the Account as
well). Specify the type of operating system used by the remote host by selecting
one of the following from the System list box:
Auto
VAX UCX V1
VAX UCX V2
VAX UCX
VAX MultiNet
NT
UNIX
Tandem
VAX TCPWare
Prime
IBM (MVS)
Dos
HP3000
AS400
KNET/MVS
IBM (Interlink)
Auto will cause FTP to automatically select the appropriate operating system and
this setting will be suitable in most cases. Note that some DOS based FTP servers
cannot automatically be resolved, so it is advisable to select Dos when you know
the target server is based on a DOS machine. VAX UCX applies to versions
higher than V2.
10-2
If you specified a particular local directory in the Connection dialog box then
this will be displayed in the left hand list box, otherwise the home directory is
displayed by default.
The right hand list box will display the contents of the remote host directory,
which will be the home directory by default if you did not specify a particular
remote directory in the Connection dialog box. If you did specify a remote
directory, then FTP will attempt to access and display it. If unsuccessful, then the
normal default directory will be displayed. Note that Tandem will not list
subdirectory information. The ftp> box at the bottom of the window will display
messages about each operation as it is performed.
You can display information about the system you are currently connected to in
the status line at the bottom of the window by selecting the first item in the
Remote Directory list box. The status line can also display information on the
currently selected file or the first file in a group of selected files.
10-3
5. Display the directory containing the file(s) to be transferred and the destination
directory in the Local and Remote Directory list boxes as required. The contents
of subdirectories can be displayed by by double-clicking the mouse pointer on
the folder icons or names. The directory path on the remote host can be specified
by entering it in the Remote Directory text box then clicking the Apply button
or pressing the Return key.
Note that the directory structure of the AS400 operating system consists of
libraries/files.members. Changing the directory changes the library. Doubleclicking a file name (folder) will display its members (documents).
6. Select the data format required for the file transfer in the list box above the Local
Directory details.
ASCII is generally used for document files and Binary for executables or nonvolatile files. Tenex is a specialist format for transfer to Tenex type machines.
7. Select the file(s) or directories to be transferred in the relevant directory list box.
A single item (file or directory) is selected by clicking the mouse pointer
anywhere on the line containing its name. Two or more contiguous items can be
selected by holding down the Shift key while clicking on them. Non-contiguous
items can be selected by holding down the Ctrl key then clicking on them.
8. When you have selected the file(s) or directories to be transferred, place the
mouse pointer on a selected item, hold down the left mouse button and drag the
pointer across to the opposite directory list box so that it rests on the icon or file
contents of the destination directory, then release the mouse button.
The Confirm Copy Files dialog box will be displayed. The From box displays
the name and location of the file or directory to be transferred. The To box shows
the name that the transferred file or directory will have at the destination. By
default this is the same as the source, but you can change the name here.
10-4
If the current directory contains subdirectories that you wish to transfer, check the
Include Subdirectories check box. This will ensure that FTP creates the relevant
subdirectories on the destination drive.
Note: A new Confirm Copy Files dialog box will appear for each
subdirectory when it is opened ready for transferring its
contents. The dialog box will close when the relevant items
in its subdirectory have been transferred.
Clicking the Yes button will transfer the named file or directory then wait for
confirmation for the next if applicable.
Usually, clicking Yes To All will copy all files and subdirectories from that
directory down without waiting for further confirmation. However, if you are
already in a subdirectory then an additional Yes To All Parent Directories
Also? box will appear. Clicking No will transfer the remaining files and any
subdirectories from the current position in the directory tree without waiting for
further confirmation, then return you to the next directory up. Clicking Yes will
transfer all the files and subdirectories from the original starting point without
waiting for further confirmation.
Clicking No will cancel the named file or directory while allowing the next file or
directory in the selection to be displayed for confirmation.
Usually, clicking Cancel will cancel the selection and close the dialog box.
However, if you are in a subdirectory then a Cancel Parent Directories Also?
box will appear. Clicking No will cancel the transfer at the current position in the
directory tree and the next directory up will be displayed ready to continue with
the transfer. Clicking Yes will terminate all transfers.
9. When you have finished transferring files, disconnect from the host either by
clicking the following button in the toolbar, or by selecting Disconnect from
Host in the Session menu.
10. To close the TTWFTP window, display the File menu and select Exit.
10-5
Clicking Yes will disconnect from the host then close the TTWFTP window.
10-6
Fi
le
Fi
en
et
el
D
op
C
le
R Cre am s
em
at
e
e
Fi
ot
D
e
ire le
C
ha
c
ng tory
e
M
od
e
os
H
os
H
m
ro
To
tF
ct
ne
ec
nn
on
D
is
co
The buttons on the toolbar provide a quick way of performing functions or displaying
dialog boxes without having to use the menus.
Copy
This will display a dialog box which enables you to duplicate a file on the local PC.
10-7
Delete
This will display a message box to confirm that you want to delete the currently
selected file(s) or directory on the local PC or remote host. Pressing the Delete key
will have the same effect. Note that directories have to be empty before they can be
deleted.
Clicking the Yes button will delete the named file or directory then wait for
confirmation for the next if more than one file was selected.
Clicking Yes to All will cause all selected files to be deleted without waiting for
additional confirmation.
Clicking No will cancel the named file while allowing the next file in the selection to
be displayed for confirmation.
Clicking Cancel will cancel the selection and close the dialog box.
Note: You can prevent the deletion of files and directories by
including a command in the FTP initialization file. Refer to
the FTP Initialization File Entries section at the end of this
chapter for details.
Rename
This will display a dialog box which enables you to change the name of a file or
directory on the local PC.
10-8
Exit
This will close the TTWFTP window. Note that if you try to exit without
disconnecting from the host, the following message box will be displayed:
Clicking Yes will disconnect from the host then close the TTWFTP window.
10-9
Connect to Host
This will display a dialog box which enables you to enter details of the remote host
and make a connection.
A connection is made by entering the Host, Login, Password and (if required)
Account details, specifying the operating system of the remote host, then clicking the
Connect button.
The operating system type is selected from the System list box which includes the
following options:
Auto
VAX UCX V1
VAX UCX V2
VAX UCX
VAX MultiNet
NT
UNIX
Tandem
VAX TCPWare
Prime
IBM (MVS)
Dos
HP3000
AS400
KNET/MVS
IBM (Interlink)
Auto will cause FTP to automatically select the appropriate operating system and this
setting will be suitable in most cases. Note that some DOS based FTP servers cannot
automatically be resolved, so it is advisable to select DOS when you know the target
server is based on a DOS machine. VAX UCX applies to versions higher than V2.
The Local and Remote Directory boxes enable you to specify the start directories
(and drive name if required) that FTP will automatically attempt to locate and display
in the TTWFTP window when a session is connected. The normal default directory
(home) will be displayed if no directory is specified or the directory is not accessible.
To save you having to enter details of the remote host each time you want to make a
connection, you can assign a session name to them which will automatically set the
10-10
Enter a unique name, the name of the remote host for example, then click OK to save
the current host connection settings to that name. The session name will be displayed
in the Sessions list box together with any others that have been defined. Clicking on a
session name will automatically update the host connection settings in the dialog box.
If you need to change any of the settings assigned to a session name, click on the
name, make the relevant changes then click the Add button then OK to the same
name.
You can delete a session name and its associated settings by selecting the name then
clicking the Delete button. You will be asked to confirm the deletion.
Session names and associated settings can be saved by selecting Save Settings on
Exit in the Configure menu. This is a toggle function which displays a tick mark
when selected.
Disconnect from Host
This will close the current connection with the remote host.
Transfer Settings
This will display a dialog box which enables you to select or deselect lowercase
conversion. File names that incorporate uppercase characters may cause transfer
problems on some systems, for example DOS machines. Selecting the Lowercase
10-11
Windows 95:
Windows NT:
Refer to the FTP Initialization File Entries section later in this chapter for more
information.
Debug Output
This is a toggle function which will display a tick mark when selected. Seleting this
option will enable debug messages to be displayed in the ftp> box at the bottom of
the TTWFTP window.
File Details
This is a toggle function which will display a tick mark when selected. Selecting this
option will cause details of the currently selected file to be displayed in the status line
at the bottom of the TTWFTP window.
10-12
Windows 95:
Windows NT:
10-13
Progress Bar
You can control the progress bar display using the -b command line option as
follows:
-b0
-b1
-b2
No progress bar.
Default progress bar, updated for every byte (ASCII) or block
(binary) read.
Update time and progress bar every 0x7fffffff bytes.
For example, to run FTP without a progress bar the command line would look like
this:
Ttw32ftp - -b0
Time Out
You can specify the amount of idle time (in seconds) allowed before FTP times out,
unless the host closes the connection first, by using the -t command line option. For
example, to specify time out after 40 seconds you would enter the following:
Ttw32ftp - -t40
10-14
Initialization Commands
11
Initialization Commands
This chapter describes all the commands that can be included in the
initialization file or on the command line.
Introduction
The initialization file is used to store various settings which specify how TeemTalk is
initially run and displayed. Once the normal initialization specification has been
defined in this file, the settings for a particular instance of TeemTalk may be overridden using command line options.
The following sections describe how to enter commands in the initialization file and
on the command line, then describe all the valid initialization commands.
Note: The default settings of functions relating to terminal
emulation are specified via pop-up menus in the main
window. These are described in the Setup Menus chapter.
Initialization File
The name and contents of the initialization file will vary depending on which version
of Microsoft Windows you are using.
Windows 3.1x
TeemTalk initialization commands are grouped under one of the following headings in
the Microsoft Windows WIN.INI file:
TeemTalk-05W:
TeemTalk-07W:
TeemTalk-11W:
[tt05w]
[tt07w]
[tt11w]
11-1
Initialization Commands
The following command group example will cause TeemTalk-07W to attempt to
connect to a network host called sparc1 using the LAN Manager protocol, and
display two levels (i.e. 4 rows) of soft buttons.
[tt07w]
host=sparc1
protocol=lanman
buttonlevels=2
You can specify more than one set of commands in the WIN.INI file so that each
instance of TeemTalk displayed on the screen can be configured differently. The
heading of the command group to action is specified on the command line using the n command line option, so if, for example, the group of commands above was
headed [window1], the command for actioning this set of commands instead of the
default [tt07w] set would be -nwindow1.
TT05W.INI
TT07W.INI
TT11W.INI
You can create additional files to meet various requirements, any one of which can be
used by TeemTalk instead of the default file by using the command line option:
-pffilename
The private profile file can be placed in any of the standard Windows File search
directories to enable TeemTalk to locate it. For example, assuming a default installation of TeemTalk-07W, the private profile file TT07W.INI could be placed in any of
the following directories:
1) C:\TEEMTALK (default)
2) C:\WINDOWS
3) C:\WINDOWS\SYSTEM
4) Any other directory referenced via
the environment path variable.
You can view the contents of the current private profile file by displaying the
Startup Options dialog box from the File menu and clicking the Edit... button. The
format of entries is the same as for those in the WIN.INI file. A heading enclosed by
square brackets is followed by one or more commands on separate lines, as in the
example below:
11-2
Initialization Commands
[Untitled.ses]
Wsp=tt07w.wsp
Nv=tt07w.nv
[Sessions]
Default=Untitled.ses
[Startup]
Dialog=1
SaveAsDefault=1
Editor=notepad.exe
All entries within the file are searched for on a case insensitive basis.
Note: TeemTalk WIN.INI commands cannot be placed in the
private profile file. Settings which should be placed in the
private profile file will be clearly indicated.
Windows 95 & NT
The TeemTalk private profile file contains various commands which affect the way in
which TeemTalk is initially run and displayed. A default private profile file is automatically created when TeemTalk is installed and this has the name TT*W.INI, where
* is the particular version of TeemTalk installed as follows:
TeemTalk-05W32:
TeemTalk-07W32:
TeemTalk-11W32:
TT05W.INI
TT07W.INI
TT11W.INI
You can create additional files to meet various requirements, any one of which can be
used by TeemTalk instead of the default file, by using the command line option:
-pffilename
The private profile file can be placed in any of the standard Windows File search
directories to enable TeemTalk to locate it. For example, assuming a default installation of TeemTalk-07W32, the private profile file TT07W.INI could be placed in any
of the following directories:
1) C:\PROGRAM FILES\TEEMTALK (default)
2) C:\WIN95
C:\WINNT35
(Windows 95)
(Windows NT)
3) C:\WIN95\SYSTEM
C:\WINNT35\SYSTEM32
(Windows 95)
(Windows NT)
11-3
Initialization Commands
You can view the contents of the private profile file used by the current instance of
TeemTalk by displaying the Startup Options dialog box from the File menu and
clicking the Edit... button.
The private profile file will already contain entries similar to the following, where
commands are grouped under headings enclosed by square brackets:
[Untitled.ses]
Wsp=tt07w.wsp
Nv=tt07w.nv
[Sessions]
Default=Untitled.ses
[Startup]
Dialog=1
SaveAsDefault=1
Editor=notepad.exe
Unless specified otherwise, all the initialization commands described in this chapter
must be entered under a new heading called:
[startup,default]
or
[startup,name]
Each command must be entered on a separate line under this heading. Note that the
commands are not case sensitive.
The following default command group example will cause TeemTalk to attempt to
connect to a network host called neoware using the TCP/IP protocol and display two
levels of soft buttons.
[startup,default]
host=neoware
protocol=tcpip
buttonlevels=2
You can specify more than one set of startup commands in the private profile file.
Each set of commands other than the default set must have the following heading:
[startup,name]
where name can be any unique identifying name. You can specify which set of
startup commands TeemTalk is to use by including the following on the command line
for loading TeemTalk, where name is substituted with the actual name of the startup
group required:
-nname
If this command is not present then TeemTalk will use the startup commands under the
[startup,default] heading.
11-4
Initialization Commands
11-5
Initialization Commands
Command Summary
indicates the command does not apply to TeemTalk-05W or TeemTalk-05W32.
Network Connection
Command Function
Initialization File
host=name
host/protocol
protocol=protocol
host/protocol
LoadWinsockOnStartup=on -lw
UngBassExtendedNetBIOS=no/yes
netid=identifier
-iidentifier
InputQueue=0-4096
-q0-4096
sessionWarning=off
-os
exitOnClose=on
-e
exitOnClose=off
-e1
exitOnClose=connect
-e2
warnExit=off
-j
Command Line
Telnet
Command Function
TelnetEchoSuppress=yes/no
TelnetBinary=yes/no
TelnetEOR=yes/no
TelnetSendBreakTM=yes/no
TelnetSendBreakCR=yes/no
Session Configuration
Command Function
Initialization File
Command Line
none
none
NVPath=directory path
WSPath=directory path
none
scriptfile=filename
ScriptUppercase=on
scriptparameter=off
zmodemStartup=on
bell=off
-ngroupname
-pffilename
none
none
-se"description"
-scfilename
-su
-hs
-zm
-be
Initialization File
windowSize=minimized
windowSize=maximized
Command Line
-mi
-ma
Display
Command Function
Window minimized on start-up
Window maximized on start-up
11-6
Initialization Commands
Command Function
Window fills screen on start-up
Disable copyright message
Disable Control menu & min/max
Disable Control menu
Disable close window menu item
Disable minimize button
Disable maximize button
Disable window frame
Disable title bar
Disable menu bar
Disable toolbar
Disable scroll bar
Title to display in title bar
Subtitle to display in title bar
Soft button levels displayed
Disable status bar
Crosshair cursor size
Font size displayed by default
Bold font in full screen workspace
Flashing enabled in all sessions
Text redraw delay
Support multiple surfaces
Alpha off during redraw
No graphics show-thru alpha
Segment memory size
Maximum number of segments
Initialization File
windowSize=fullScreen
quiet=on
SystemMenu=none
SystemMenu=off
MenuCloseItem=off
MinimizeBox=off
MaximizeBox=off
windowFrame=off
titlebar=off
menubar=off
toolbar=off
scrollbar=off
title="title"
subTitle="subtitle"
buttonlevels=0-4
statusline=off
CrosshairSize=1-4096
defaultFontIndex=index
UseBoldFont=on
FlashInBackground=on
TextRedrawDelay=ms
planeMasking=on
hideAlpha=on
hideGraphics=on
SegmentMemorySize=#
MaxSegments=#-16000
Command Line
-f
-qt
-sy
-ms
-mt
-mn
-mx
-fr
-tb
-mb
-l
-sb
-t"title"
-st"subtitle"
-bl0-4
-v
-x1-4096
-dfindex
-bf
-fb
-rdms
-pm / -pmindex
-h
-g
-sm256-#
-sn#-16000
Initialization File
LK450keyboard=yes
mouseCursor=0-10
mouseEdit=off/disabled
mouseEdit=on/enabled
none
Command Line
-kblk450
-mc0-10
-me2
-me1
-me0
Command Function
Initialization File
Command Line
device=printer details
UseWindowsPrinter=yes
UsePrintManager=0
UsePrintManager=1
printtofile=filename
remotePrinting=off
none
-wp
none
none
-prfilename
-rp
Printing
11-7
Initialization Commands
Network Connection
Network Host Name
Initialization File: host=name
Command Line: hostname/protocol
Default Setting:
Not applicable
You can make TeemTalk automatically connect to a network host node each time it is
loaded or reset by specifying the host name, protocol and, if necessary, a different
default TSR identifier in the initialization file or on the command line. The host=
command is used to specify the name of the host. The communications protocol must
be specified on the line below the host= command using the protocol= command.
On the command line, the host name is immediately followed by a forward slash (/)
then the protocol (as listed in the next section). For example, to specify the host as
pericom and the protocol as CTERM, the command line for TeemTalk-07W32
would look like this:
C:\PROGRAM FILES\TEEMTALK\TT07W.EXE pericom/cterm
Network Protocol
Initialization File: protocol=protocol
Command Line: hostname/protocol
Default Setting:
Not applicable
You can make TeemTalk automatically connect to a network host node each time it is
loaded or reset by specifying the host name, protocol and, if necessary, a different
default TSR identifier in the initialization file or on the command line.
In the initialization file, the protocol must be specified on the line immediately below
the host= command.
The protocol setting can be any one of the following:
TeemTalk for Windows 3.1x:
bapi
bwtcp
cterm
doslanti
eiconx25
11-8
infoconn
int6B
int14
ipxspx
isdn
lanman
lanwp
lat
multilan
ncsi
netbios
netwlat
newt
oslan
pathway
pcnfs
pctcp
TeemTalkosi
telapi
winsock
Initialization Commands
TeemTalk for Windows 95 & NT:
CTERM
LAT
MULTILAN
NETBIOS
TCPIP
TEEMTALKOSI
WINSOCK2
Refer to the Network Connection chapter in the Networking Guide for a description
of these protocols.
Note that if you only specify the host name on the command line then TeemTalk will
assume you are using TCP/IP.
If you are using the NetBIOS protocol, refer to the NetBIOS Version section in the
Network Connection chapter of the Networking Guide for an additional initialization
file command that has to be included.
NetBIOS Version
Initialization File: UngBassExtendedNetBIOS=No/Yes
Command Line: Not applicable
Default Setting:
No
This command is used to specify the version of NetBIOS being used when you select
NetBIOS for network communications. If you are using the Ungermann Bass NetOne NetBIOS, set this command to Yes, otherwise set it to No.
11-9
Initialization Commands
TSR Identifier
WIN.INI File:
Command Line:
Default Setting:
netid=identifier
-iidentifier
5A
TeemTalk for Windows 3.1x communicates with its TSR programs and the network
kernel software via interrupt 63 (hex). A unique TSR identifier is used to link an
instance of TeemTalk to a particular TSR. This enables two or more instances of
TeemTalk to use different network protocols, and also allows other software in the
system to use interrupt 63.
The default TSR identifier is 5A (hex). You can specify a different default identifier
by including the netid= command in the WIN.INI file. For example, to specify the
new default TSR identifier as 48 (hex), you would enter the following line:
netid=48
If you want to use a different TSR identifier than the default specified in the
WIN.INI file (to enable another instance of TeemTalk to use a different network
protocol, for example), you need to include the -i command line option immediately
followed by the new TSR identifier when loading the TSR program and when
loading TeemTalk (as specified in the Microsoft Windows Program Item Properties
dialog box).
For example, to run FTPTSR using the identifier 48 (hex), the line entered at the
DOS prompt would be:
FTPTSR -i48
11-10
Initialization Commands
Default Setting:
When the host closes the connection or the connection fails, TeemTalk normally
displays a message box giving you the option to reconnect, cancel or exit. These
commands will disable the message box and cause TeemTalk to immediately perform
the required option.
11-11
Initialization Commands
Telnet Commands
Suppress Telnet Echo Option
Private Profile File: TelnetEchoSuppress=Yes
Command Line:
Not applicable
Default Setting:
No
This command will suppress TeemTalk generation of the Telnet echo option on
connection. It must be placed under the [Sessions] heading in the TeemTalk private
profile file.
11-12
Initialization Commands
Session Configuration
Startup Command Group To Action
Initialization File: Not applicable
Command Line: -nname
Default Setting:
Windows 3.1x:
tt*w (* is either 05, 07, or 11)
Windows 95 & NT: default
You can specify more than one set of startup commands in the Windows 3.1x
WIN.INI file or the Windows 95 or NT TT*W.INI private profile file. This enables
you to configure each instance of TeemTalk differently.
Windows 3.1x
The heading of the command group to action for a specific instance of TeemTalk is
specified on the command line using the -n command line option. For example, if the
group of TeemTalk-07W commands was headed [window1] in the WIN.INI file, the
command for actioning this set of commands instead of the default [tt07w] set would
be:
-nwindow1
When entering groups of TeemTalk commands in the WIN.INI file, make sure that
each heading is unique and not duplicated elsewhere in the file.
Windows 95 & NT
Each set of commands other than the default set must have the following heading in
the TT*W.INI private profile file:
[startup,name]
where name can be any unique identifying name. You can specify which set of
startup commands TeemTalk is to use by including the following on the command line
for loading TeemTalk, where name is substituted with the actual name of the startup
group required:
-nname
If this command is not present then TeemTalk will use the startup commands under the
[startup,default] heading.
11-13
Initialization Commands
NVPath=directory
Not applicable
\TEEMTALK
This command applies to TeemTalk for Windows 3.1x. If you have chosen a different
destination directory for the emulation settings file TT*W.NV to the default directory
\TEEMTALK, you must specify the full directory path using this command.
WSPath=directory
Not applicable
\TEEMTALK
This command applies to TeemTalk for Windows 3.1x. If you have chosen a different
destination directory for the workspace settings file TT*W.WSP to the default
directory \TEEMTALK, you must specify the full directory path using this command.
11-14
Initialization Commands
ZMODEM Startup
Initialization File: zmodemStartup=on
Command Line: -zm
Default Setting:
Off
When ZMODEM startup is enabled, TeemTalk will check incoming data for a remote
ZMODEM startup sequence then automatically start a file transfer using the settings
11-15
Initialization Commands
specified in the ZModem Settings dialog box. Note that the transfer protocol selected
in the Initiate File Transfer dialog box will be ignored. Refer to the File Transfer
chapter for more information.
Disable Bell
Initialization File: bell=off
Command Line: -be
Default Setting:
Enabled
These commands enable you to turn off the terminal bell.
11-16
Initialization Commands
Display
Window Minimized When Loaded
Initialization File: windowSize=minimized
Command Line: -mi
Default Setting:
Not applicable
These commands will cause the window to be displayed as an icon when TeemTalk is
loaded.
11-17
Initialization Commands
11-18
Initialization Commands
Edit Menu:
EditMenu=Off
ClipboardText=Off
ClipboardGraphics=Off
DDERowCopy=Off
DDEColumnCopy=Off
Copy=Off
Paste=Off
SelectAll=Off
ClearBuffer=Off
Settings Menu:
SettingsMenu=Off
Emulation=Off
Serial=Off
Terminal=Off
Dialog=Off
Gin=Off
Attributes=Off
KeyboardMacros=Off
SoftButtons=Off
MouseButtons=Off
ButtonTools=Off
Help Menu:
Helpmenu=Off
Window Size:
<<=Off
>>=Off
11-19
Initialization Commands
Disable Toolbar
Initialization File: toolbar=off
Command Line: -l
Default Setting: on
These commands will remove the toolbar from the window.
Window Title
Initialization File: title="title"
Command Line: -t"title"
Default Setting: TeemTalk TT*W where * is 05, 07 or 11
These commands enable you to specify the title that is to be displayed in the title bar.
This is useful when you are running more than one instance of TeemTalk.
When specifying the title on the command line you must enclose it within double
quotes. For example, to use the command line option to specify the title as New
Data, you would enter the following:
-t"New Data"
If no title is specified then the name of your version of TeemTalk will be displayed.
11-20
Initialization Commands
Window Subtitle
Initialization File: subTitle="subtitle"
Command Line: -st"subtitle"
Default Setting:
Untitled
These commands enable you to specify a subtitle for display in the title bar of a
specific TeemTalk window. By default the subtitle is the name of the session.
11-21
Initialization Commands
font size by using one of these commands where index is the index of the font as
defined in the following tables.
The size of the font for a particular index will vary depending on the terminal emulation. Specifying an index outside the range for the emulation will cause the highest
valid index number for that emulation to be used. The font sizes are defined in pixels.
Font
Index
DEC VT Modes
80 Cols 132 Cols
24 x 12
24 x 7
23 x 12
23 x 7
16 x 8
19 x 10
19 x 6
21 x 11
21 x 6
14 x 7
18 x 9
18 x 5
19 x 10
19 x 6
12 x 6
17 x 8
17 x 4
17 x 9
17 x 5
10 x 5
16 x 8
16 x 4
15 x 8
15 x 4
8x4
15 x 8
15 x 4
13 x 7
13 x 4
7x3
14 x 7
14 x 4
12 x 7
12 x 4
7x3
13 x 6
13 x 3
12 x 6
12 x 3
7x3
12 x 5
12 x 3
11 x 6
11 x 3
7x3
10 x 5
10 x 3
9x5
9x3
7x3
10
8x5
8x3
7x4
7x2
7x3
11
7x5
7x3
6x3
6x2
7x3
Tek 4111
128 Cols
11-22
Initialization Commands
11-23
Initialization Commands
11-24
Initialization Commands
Default Setting:
mouseCursor=0-10
-mc0-10
I-beam cursor
These commands enable you to specify the style of the mouse cursor displayed by
default in the TeemTalk window. The values 0 through 10 correspond to the styles
shown in the table below.
Default Cursor
(I-Beam)
10
No Cursor
11-25
Initialization Commands
In some cases it may be necessary to disable the copy and paste function of the mouse
buttons to prevent accidental editing. This can be achieved by using one of these
commands.
When the editing functions are disabled, use the Edit menu options or the numeric
keypad keys Shift + . (i.e. Del) to copy and Shift + 0 (i.e. Ins) to paste instead.
11-26
Initialization Commands
Printing
Default TeemTalk Printer
Initialization File: device=printer details
Command Line: Not applicable
Default Setting:
As specified in the Control panel
This command enables you to specify a different printer which TeemTalk will use by
default instead of that specified in the Control panel.
11-27
Initialization Commands
11-28
12
Creating A Script File
This chapter describes TeemTalk's scripting language.
Introduction
TeemTalk provides a comprehensive script language which allows all aspects of the
emulator to be controlled via user written command files. Operating in real time, the
script language can be used to create customised environments, detect and act upon
host events, and simulate user input. A script file can be written using any text editor.
12-1
12-2
12-3
12-4
12-5
"<vt__f7>"
"<vt__pf1><vt__f7>"
"<vt__pf2><vt__f7>"
"<vt__pf3><vt__f7>"
"<vt__pf2><vt__f18>2"
"<vt__pf4>"
"<vt__f6>"
"<vt__pf2><vt__remove>"
"<vt__pf2><vt__remove>"
"<vt__pf1><vt__remove>"
"<vt__pf4><vt__pf4>"
"<vt__find>"
"<vt__f20>"
"<vt__pf1><vk__tab>"
"<vt__pf1>_013"
"<vk__subtract>"
"<vt__pf1>_027[D"
"<vt__pf1>_027[C"
"<vt__pf1>_013"
"<vt__pf3>+A"
12-6
Launching An Application
& Changing The Window Focus
There are 2 additional special sequences which can be programmed into soft
buttons or keyboard macros:
To launch an application, include the 'command line' within round brackets:
PSET MACRO VK_F1 "(c:\TeemTalk\tt07w.exe)"
To change the window focus (window class name), include it within quotes within
angle brackets:
PSET MACRO VK_F2 "<_034tt07w_034>"
Note: The decimal value of the double quote character is used
within the string to prevent the script program assuming
that it terminates the string.
12-7
12-8
12-9
12-10
12-11
Syntax Conventions
This section explains the rules for writing a script program.
Program Lines
The first text entry of each line must be a script command or a line label, which may be
preceded by any number of spaces from the beginning of the line. The command can
be entered in upper or lower case. Command parameters may be separated by a comma
or/and a space.
Comments
You can enter comments on separate lines or on the same line as a script command. In
both cases the comment must be prefixed by a semicolon (;). For example:
; This is a comment line
pset emul mode vt2207 ; This is a comment on a command line
Labelling Lines
You can assign a label to a line to indicate the start of a subroutine. Labels do not
have to be entered on a separate line, they can be placed anywhere.
A label consists of alphanumeric characters immediately followed by a colon, but
note that the label must not begin with a number otherwise it will be treated as a line
number by the program. For example:
start:
pset:
Note that the label may include the same characters as a script command (such as
pset: above), but will not be treated as a command as long as it is immediately
followed by a colon. References to labels (e.g. by gosub or goto) must include the
colon.
12-12
So "User Identity: _010_013" specifies the string User Identity: followed by a line
feed then carriage return.
Boolean Values
When a command requires a boolean value, this can be any of the following where
the value may be abbreviated to the UPPERCASE characters: 0 or 1, No or Yes,
False or True, OFF or ON.
12-13
Script Operators
The script language supports various arithmetic operators to facilitate calculations and
manipulations on numeric variables and discrete numeric values. Some of the
operators are also extended to provide some useful manipulations on strings and
string variables. Operators such as + and * are straight forward. Those that are not so
intuitive will be described with the aid of script examples.
The valid operators are as follows:
( ) * / % + - < <= > >= == != = += -= *= /= %=
Numeric Operators
Subtraction (-)
The - operator takes on one of two guises, depending on how it is used. It is
interpreted as a simple subtraction operator in a command such as:
Data = 4 - 2
which would set the value stored in Data to 2. However, it can also be used as a
negate or "unary minus" operator when used in the following way:
Data = 4 * -2
which would set the value stored in Data to -8.
12-14
Division Operators (/ %)
The / operator performs a straight forward division operation on two numerics. If the
variable receiving the result of the operation is a float then the defined variable would
hold the exact value, otherwise, with an integer variable, the result would be rounded
down to the nearest integral value. For example:
var %Int
var !Float
Int = Float = 5.0 / 2
wrt "Float result of 5.0 / 2 = ", Float, "_n_r"
wrt "Int result of 5.0 / 2 = ", Int, "_n_r"
exit
would print the two lines:
Float result of 5.0 / 2 = 2.50000
Int result of 5.0 / 2 = 2
Note that the expression 5.0 / 2 is specified, and not 5 / 2. This is to ensure that the
language interpreter performs the arithmetic operation using floats instead of the
default of integers. So if the third line was Int = Float = 5 / 2 the result would be:
Float result of 5 / 2 = 2.00000
Int result of 5 / 2 = 2
The % operator will only work on integer operations. If a floating point operation
contains this operator, the system flag will be set to FALSE, indicating an error, and
the rest of the line will be ignored. The operator is provided as a means to achieve the
remainder of the result of an integral divide. For example:
var %Int
Int = 5 % 2
wrt "result of 5 % 2 = ", Int, "_n_r"
exit
would print the line:
result of 5 % 2 = 1
12-15
String Operators
There are a limited number of operators that will successfully manipulate strings.
These are as follows:
+ += = == != < <= > >=
12-16
Associativity
( )
! - (unary)
* / %
+ < <= > >=
== !=
= += -= *= /= %=
Left to Right
Right to Left
Left to Right
Left to Right
Left to Right
Left to Right
Right to Left
The above table summarises the rules for precedence and associativity of operators
available in the script language. Operators on the same line have the same
precedence; lines are in order of decreasing precedence. So, for example, * / and %
have the same precedence, which is higher than that of + and -.
Note that the brackets have the highest priority and are used to override the default
precedences assumed by the script decoder.
For example:
var %Data
Data = 1 + 2 * 3 + 4
wrt "Data = ", Data, "_n_r"
would output Data = 11, whereas
var %Data
Data = (1 + 2) * (3 + 4)
wrt "Data = ", Data, "_n_r"
would output Data = 21.
12-17
Command Descriptions
The commands that can be used in the script file are described in alphabetical order on
the following pages.
Conventions
Character Case
Each command description begins by showing the basic command followed by the
command format with any parameters. The command itself is shown in uppercase
though it is not case sensitive. Commands referred to within the main text, and
program examples, are generally shown in lowercase.
Parameters
If a command requires one or more parameters then an indication of the entry
required is enclosed in angle brackets. For example:
DIALOGUE <title> <caption> <variable>
Each parameter indicator must be substituted with the relevant information as
specified by the description for the command. So for the example above you could
enter the following:
DIALOGUE "Name" "Please enter your name here" name
If a command includes parameters that may be omitted, these will be enclosed by
square brackets. For example:
HCMP,<time> <string1> [<string2>...]
where <string2> is optional.
Do not include the angle or square brackets as part of the command unless you are
specifically told to do so in the command description.
Boolean Values
When a command requires a boolean value, this can be any of the following where
the value may be abbreviated to the UPPERCASE characters: 0 or 1, No or Yes,
False or True, OFF or ON.
12-18
Command Summary
PROGRAM COMMANDS
BRF
BRT
ELSE
EXIT
GOSUB
GOTO
IF
LAUNCH
LET
QUIT
RAND
RETURN
SEED
SWITCH
WHILE
CLIPBOARD
CLIPBD APPEND
CLIPBD EMPTY
CLIPBD READ
CLIPBD WRITE
COMMUNICATIONS
BREAK
CAPTURE
CLR
REPLAY
WAIT
DISPLAY
CLB
CLS
12-19
ERROR TRAPPING
ERRORCODE
ERRORLINE
ONERROR
FILE OPERATIONS
DIRFIRST
DIRNEXT
FILE CLOSE
FILE COPY
FILE DELETE
FILE OPEN
FILE READ
FILE RENAME
FILE RGET
FILE SEEK
FILE STAT
FILE WPUT
FILE WRITE
FILE TRANSFER
FTU CANCEL
FTU GET
FTU INITIATE
12-20
HOST CHARACTERS
HCMP
HGET
HRCV
SETUP
FACT
GETINI
PGET
PSET
RST
SAVESET
SETINI
12-21
STRING OPERATIONS
DECRYPT
ENCRYPT
FSTR
LEN
LOW
LSTR
MSTR
PARSE
PACK
PACKTAB
PUT
RSTR
UPP
WRT
VARIABLES
CONV
DEC
INC
LEN
PUT
VAR
WRT
12-22
Commands
BREAK
Syntax: BREAK <time>
Places a break signal on communications line for the specified time in milliseconds.
If no time is specified then the break will be for 250 milliseconds.
BRF
Syntax: BRF <label>
If the system flag is set to FALSE, the program branches to the line with the specified
label. If the label does not exist, the program continues with the next line.
BRT
Syntax: BRT <label>
If the system flag is set to TRUE, the program branches to the line with the specified
label. If the label does not exist, the program continues with the next line.
CAPTURE
Syntax: CAPTURE <filespec>
CAPTURE CANCEL
This will cause all data received from the host to be stored in the specified file until a
capture cancel command is issued. The file can be replayed later using the replay
emul or replay host command.
CLB
Syntax: CLB
This will cause the contents of the TeemTalk display buffer to be cleared.
CLIPBD APPEND
Syntax: CLIPBD APPEND <string>
This command will append the specified string to the clipboard.
12-23
CLIPBD EMPTY
Syntax: CLIPBD EMPTY
This command will open the clipboard, clear all the data contained in the clipboard,
then close it. Refer to the Error Numbers section later in this chapter for a list of
possible error numbers for this command.
CLIPBD READ
Syntax: CLIPBD READ <variable>
This command will open the clipboard, read all the data contained in the clipboard
and place it in the specified string variable, then close the clipboard. Note that the
data placed in the variable could potentially contain carriage returns, line feeds and
tabs.
CLIPBD WRITE
Syntax: CLIPBD WRITE <string>
This command will open the clipboard, write the data contained in the string or
variable to the clipboard, then close it. The string or variable can contain carriage
returns, line feeds and tabs.
CLR
Syntax: CLR
Clears the communications buffer.
CLS
Syntax: CLS
Moves the cursor to home and clears the screen.
CONV
Syntax: CONV <destvar> <sourcevar>
This copies data from <sourcevar> and converts its variable type (string, integer or
floating point number) to that of <destvar>, which will store the result as follows:
<destvar>
<sourcevar>
string
integer
12-24
Result
<destvar> will contain the ASCII character that
has the decimal value given by <sourcevar>.
<sourcevar>
Result
integer
string
integer
float
float
integer
DDE CANCEL
Syntax: DDE CANCEL [<channel>]
Cancels the DDE conversation on the channel specified by the <channel> variable
(as defined by the dde initiate command). If no channel variable is specified then the
channel ID is assumed to be 1. More than one channel variable may be specified on
the same line. The system flag will be set to TRUE if the command is successful, or
FALSE if failed.
DDE EXECUTE
Syntax: DDE EXECUTE <instructions> [<channel>]
This command specifies a list of instructions that the DDE partner should perform,
where
<instructions> is either a string delimited by single quote characters containing the
instructions, or a string variable (excluding single quotes).
<channel>
The following example will cause an Excel file called expenses.xls to be opened on
channel 1:
dde execute '[open("h:\excel\excelcbt\expenses.xls")]' channel1
DDE INITIATE
Syntax: DDE INITIATE <app> <topic> [<channel> <ddelist>]
This command starts a dynamic data exchange (DDE) conversation between
TeemTalk and an application, where
<app>
<topic>
12-25
<ddelist>
is the name of a string variable into which a list of topics found for
the DDE partner will be placed. This may be omitted, but if included
it must be used in conjunction with <channel>.
The system flag will be set to TRUE and the errno (error number) variable will be
set to 0 if the command is successful, or FALSE and an error number other than 0 if
the command failed.
Up to four DDE conversations will be permitted if a <channel> variable is specified.
When a DDE connection is successfully made, the <channel> variable will contain
the ID of the conversation. If the connection was unsuccessful, <channel> will have
a value of 0 or -#, where # indicates the number of multiple sessions that would have
been started.
If <ddelist> is specified and the <channel> variable is -#, then <ddelist> will contain
a list of strings relating to each individual session that would have been started. Each
entry in the list will be separated by a comma, as follows:
szAppName1|szTopic1,szAppName2|szTopic2
You can list the available topics for an application by specifying an empty string for
the <topic> entry and including the <channel> and <ddelist> variable names. The
following example will cause a list of available topics for the application Excel to be
stored in the variable ExcelTopics:
dde initiate "Excel" "" channel ExcelTopics
DDE POKE
Syntax: DDE POKE <variable> <item> [<channel>]
Sends a poke to the DDE partner, placing data contained in a variable into a specified
item, where
<variable>
<item>
<channel>
12-26
DDE REQUEST
Syntax: DDE REQUEST <item> <variable> [<channel>]
Requests that information relating to an item is assigned to a variable name, where
<item>
<variable>
<channel>
is the name of the integer variable identifying the particular channel for
the DDE link if specified by the dde initiate command, otherwise this
is omitted.
The following example will request that data contained in cells located at row 1
column 1 through row 2 column 3 inclusive is to be placed in the variable data1,
with no channel specified (assuming the DDE partner is an Excel spreadsheet):
dde request "R1C1:R2C3" data1
DEC
Syntax: DEC <variable> [<variable>...]
Decreases the integer or floating point number assigned to the specified variable(s)
by one.
DECRYPT
Syntax: DECRYPT <result> <string> <key>
Decrypts a string previously encrypted by the encrypt command, where
<result>
is a previously defined string variable (see var) which will store the
decrypted string.
<string>
<key>
The Error Numbers section lists the possible error numbers for this command.
12-27
DIALOGUE
Syntax: DIALOGUE <title> <caption> <variable> [<x> <y>]
This command enables you to display a simple dialog box with a specified title,
containing two buttons (Ok and Cancel) and a single line text box with a specified
caption, where
<title>
is the text to be displayed in the title bar of the dialog box, as specified
by a string delimited by double quotes or a string variable.
<caption>
is the text that will appear to the left or above the text box, as specified
by a string delimited by double quotes or a string variable.
<variable>
<x> <y>
specify the horizontal and vertical position of the top left corner of the
dialog box in relation to the top left corner of the screen in pixels.
These can be integers or variables.
The following example will display a dialog box titled User containing a text box
with the prompt Enter your name:, and cause the text entered in the text box by the
user to be stored in the string variable name when the Ok button is pressed.
dialogue "User" "Enter your name: " name 100 100
The Error Numbers section lists the possible error numbers for this command.
DIRFIRST
Syntax: DIRFIRST <filename> [<size> <mode> <modtm> <uname> <gname>]
This will get the first entry in the working directory and place it in the previously
defined string variables, where
<filename> is a previously defined string variable (see var) which will store the
name of the file. This is the only variable that must be specified, the
others are optional.
<size>
<mode>
<modtime> is a previously defined string variable which will store the time of the
last modification.
<uname>
12-28
Note that if you require a value which follows one or more that are not required, you
will still need to supply variables for them. For example, if you only wanted the time
that the file was last modified, you would need to specify a variable for <size> and
<mode> as well as <modtime>.
Note that on a UNIX system the first entry is always ".". This command can be
followed by one or more dirnext commands to work through the directory listing.
If the command is invalid then the variable will be set to "" (zero length).
DIRNEXT
Syntax: DIRNEXT <filename> [<size> <mode> <modtime> <uname>
<gname>]
This will get the next entry in the working directory following a dirfirst command
and place it in the previously defined string variables, where
<filename> is a previously defined string variable (see var) which will store the
name of the file. This is the only variable that must be specified, the
others are optional.
<size>
<mode>
<modtime> is a previously defined string variable which will store the time of the
last modification.
<uname>
<gname>
Note that if you require a value which follows one or more that are not required, you
will still need to supply variables for them. For example, if you only wanted the time
that the file was last modified, you would need to specify a variable for <size> and
<mode> as well as <modtime>.
This command can be followed by more dirnext commands to work through the
directory listing.
If the command is invalid or there are no more directory entries then the variable will
be set to "" (zero length).
12-29
DSP
Syntax: DSP <integer>
If the integer is 1, all the program lines that follow are displayed and actioned. If the
integer is 0, all following lines are actioned but not displayed.
ELSE
Syntax: ELSE
This command is used in conjunction with the if command and informs the program
to perform the command(s) on the following line(s) if a previously specified if
condition was not true.
For example:
if (integer > 3)
goto routine1:
else
goto routine2:
If more than one command line is to be associated with else, insert a line containing
the { (open curly brace) character before the first command line and a line containing
the } (close curly brace) character following the last command line.
For example:
if (integer > 3)
goto routine1:
else
{
inc integer
goto routine2:
}
The if command may be used on the same line as else, for example:
if (N == 1)
X=2
else if (N == 2)
X=4
else
X=1
12-30
ENCRYPT
Syntax: ENCRYPT <result> <string> <key>
Encrypts a string, where
<result>
is a previously defined string variable (see var) which will store the
encrypted string.
<string>
<key>
is one or more characters that are used to define how the string is
encrypted. These can be any characters except nulls.
Each character in the string will be represented as two hexadecimal characters in the
resulting encryption. The hexadecimal characters will vary according to the <key>
characters specified. You can use the decrypt command to convert the encrypted
string back to normal characters.
The Error Numbers section lists the possible error numbers for this command.
ERRORCODE
Syntax: ERRORCODE <variable>
This command specifies the type of error code that will be returned when an error is
encountered in the script program. Specifying an integer variable will return an error
ID number, while a string variable will return an error message. Refer to the Script
Error Trapping Functions section later in this chapter for details.
ERRORLINE
Syntax: ERRORLINE <variable>
This command will return the line number of the last script program error. Refer to
the Script Error Trapping Functions section later.
EXIT
Syntax: EXIT
Terminates the script program but does not exit TeemTalk.
FACT
Syntax: FACT
This will cause TeemTalk to reassert the original setup configuration it had when you
first installed it.
12-31
FILE CLOSE
Syntax: FILE CLOSE <handle>
Closes the file with the specified handle where <handle> is the name of the integer
variable assigned by the file open command.
The Error Numbers section lists the possible error numbers for this command.
FILE COPY
Syntax: FILE COPY <filename> <destname>
This will copy the file specified by the <filename> string or string variable to the
specified destination, where the <destname> string or string variable can be a full
path name, just a filename, or just a path. For example:
file copy "myfile.tmp" "/distrib/source/work/newfile.tmp"
will create the file newfile.tmp in the directory /distrib/source/work. The Error
Numbers section lists the possible error numbers for this command.
FILE DELETE
Syntax: FILE DELETE <filespec>
Deletes the file specified by the string or string variable <filespec>. Refer to the
Error Numbers appendix for a list of possible error numbers for this command.
FILE OPEN
Syntax: FILE OPEN <variable> <filespec> <operation>
This command is used to open a specified file, assign an integer to identify the file,
and specify whether the file is to be created, read, written to, or any combination of
these, where
<variable>
<filespec>
12-32
FILE READ
Syntax: FILE READ <handle> <variable> <length>
This will read a specified number of characters from a file and assign them to a
variable, where
<handle>
is the integer variable specified by the file open command and used to
identify the file.
<variable>
<length>
More than one variable (and length specifier if a string variable) may be specified to
store successive blocks of characters from the file.
The following example will read ten characters from the file identified by the handle
id and assign them to the string variable char1, then read the next six characters and
assign them to the string variable char2, and finally read the next 2 characters and
place them in the integer variable number:
file read id char1 10 char2 6 number
The Error Numbers section lists the possible error numbers for this command.
FILE RENAME
Syntax: FILE RENAME <filename> <newname>
This will rename the file specified by <filename> to that of <newname>. Both
filenames can be specified as strings or string variables.
12-33
FILE RGET
Syntax: FILE RGET <handle> <variable>
This will get a single character from a file and assign it to a variable, where
<handle>
is the integer variable specified by the file open command and used to
identify the file.
<varname> is a previously defined variable (see var) which will be used to store
the character. Note that if the variable was created in the integer format, the decimal value of the character will be assigned to it.
More than one variable may be specified to store successive characters from the file.
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
FILE SEEK
Syntax: FILE SEEK <handle> <position> [<count>]
This command specifies the location within a file at which character read and write
operations are to occur, where
<handle>
is the integer variable specified by the file open command and used to
identify the file.
<position>
<count>
The following example will move the location to twelve characters from the end of
the file identified by the handle id:
file seek id e -12
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
FILE STAT
Syntax: FILE STAT <filename> [<size> <mode> <modtime> <uname> <gname>]
This will get the statistics of the specified file and place them in the previously
defined string variables, where
<filename> is a string or string variable that specifies the name of the file. This is
the only entry that must be specified, the others are optional.
12-34
<mode>
<modtime> is a previously defined string variable which will store the time of the
last modification.
<uname>
<gname>
Note that if you require a value which follows one or more that are not required, you
will still need to supply variables for them. For example, if you only wanted the time
that the file was last modified, you would need to specify a variable for <size> and
<mode> as well as <modtime>.
You can use this command to check for the existence of a file. For example, to check
the existence of the file myfile.tmp, you could specify the following:
file stat "myfile.tmp"
if errno == 13
wrt "did not find myfile.tmp"
FILE WPUT
Syntax: FILE WPUT <handle> <variable>
This will write the character assigned to a variable to a file, where
<handle>
is the integer variable specified by the file open command and used to
identify the file.
<variable>
More than one variable may be specified to write successive characters to the file.
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
FILE WRITE
Syntax: FILE WRITE <handle> <variable> <length>
This will write characters assigned to a variable to a file, where
<handle>
is the integer variable specified by the file open command and used to
identify the file.
12-35
<length>
is the number of characters to be written if the variable is in string format. If the variable is in integer format the number of characters that will
be written is two, and if in floating point number format the number of
characters that will be written is four.
More than one variable may be specified to write successive blocks of characters to the
file.
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
FSTR
Syntax: FSTR <align> <new> <orig> <length>
This command enables you to format a string of characters to a required length by
adding spaces and aligning the text to the left, right or centre, where
<align>
<new>
<orig>
<length>
is the length of the string required. If this is shorter than the length of
the source string then the entire source string will be copied to the
destination variable without formatting.
The following example will copy the string contained in the variable orig to the
variable new, add spaces to make it 20 characters long and make the text right
aligned:
fstr r new orig 20
FTP CD
Syntax: FTP CD LOCAL <directory path>
FTP CD REMOTE <directory path>
This FTP file transfer command enables you to change the current local or remote
directory. The directory path must be enclosed by double quotes. The following
entries are also valid: '.' and '..'. Note that ftp cd local will not affect the user's
working directory. Refer to the Error Numbers section later in this chapter for a list
of possible error numbers for this command.
12-36
FTP CONNECT
Syntax: FTP CONNECT <system> <host> [<login> <password> <account>]
This enables you to make a host connection for FTP file transfer.
The <system> entry specifies the type of operating system used by the remote host
and must be one of the following entered exactly as shown and enclosed by double
quotes:
Auto
VAX UCX V1
VAX UCX V2
VAX UCX V3
VAX MultiNet
NT
UNIX
Tandem
VAX TCPWare
Prime
IBM (MVS)
Dos
HP3000
AS400
KNET/MVS
IBM (Interlink)
Other
Auto will cause FTP to automatically select the appropriate operating system and this
setting will be suitable in most cases. Note that some DOS based FTP servers cannot
automatically be resolved, so it is advisable to select DOS when you know the target
server is based on a DOS machine. VAX UCX applies to versions higher than V2.
Only choose Other if none of the other selections work.
Any of the <login>, <password> and <account> parameters may be omitted, but if a
specified parameter follows then an empty string must be entered for the omitted
parameter(s). The following example specifies the host as pericom, omits the login
parameter, specifies a password and omits the account:
ftp connect "Auto" "pericom" "" "password"
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
FTP COPYDLG
Syntax: FTP COPYDLG <ON/OFF>
When set to ON, this command will cause a message box to be displayed when a file
is being transferred indicating that the transfer is in progress. The box will be cleared
from the display once the transfer is completed.
12-37
FTP DIRFIRST
Syntax: FTP DIRFIRST LOCAL <filename> [<size> <mode> <modtime>
<uname> <gname>]
FTP DIRFIRST REMOTE <filename> [<size> <mode> <modtime>
<uname> <gname>]
This FTP file transfer command will get the first entry in the current local or remote
directory and place it in the previously defined string variables, where
<filename> is a previously defined string variable (see var) which will store the
name of the file. This is the only variable that must be specified, the
others are optional.
<size>
<mode>
<modtime> is a previously defined string variable which will store the time of the
last modification.
<uname>
<gname>
Note that if you require a value which follows one or more that are not required, you
will still need to supply variables for them. For example, if you only wanted the time
that the file was last modified, you would need to specify a variable for <size> and
<mode> as well as <modtime>.
On a UNIX system the first entry is always ".". This can be followed by one or more
ftp dirnext commands to work through the directory listing.
If the command is invalid then the variable will be set to "" (zero length).
Refer to the Error Numbers section for a list of possible error numbers.
12-38
FTP DIRNEXT
Syntax: FTP DIRNEXT LOCAL <filename> [<size> <mode> <modtime>
<uname> <gname>]
FTP DIRNEXT REMOTE <filename> [<size> <mode> <modtime>
<uname> <gname>]
This FTP file transfer command will get the next entry in the working directory
following an ftp dirfirst command and place it in the previously defined string
variables, where
<filename> is a previously defined string variable (see var) which will store the
name of the file. This is the only variable that must be specified, the
others are optional.
<size>
<mode>
<modtime> is a previously defined string variable which will store the time of the
last modification.
<uname>
<gname>
Note that if you require a value which follows one or more that are not required, you
will still need to supply variables for them. For example, if you only wanted the time
that the file was last modified, you would need to specify a variable for <size> and
<mode> as well as <modtime>.
This can be followed by more ftp dirnext commands to work through the directory
listing.
If the command is invalid or there are no more directory entries then the variable will
be set to "" (zero length).
Note: Both the local and remote directories can be listed at the
same time, but the process will be slow as the language will
have to constantly swap between them.
Refer to the Error Numbers section for a list of possible error numbers.
FTP DISCONNECT
Syntax: FTP DISCONNECT <boolean>
This will close an FTP connection between TeemTalk and the host previously initiated
by the ftp connect command. The optional boolean parameter can be used to shut the
FTP module down. By default (false) it keeps running.
12-39
FTP GET
Syntax: FTP GET [<mode>] <remote file> [<local file>]
This will transfer a file from the currently connected host, as initiated by the ftp
connect command, where
<mode>
<remote file>
<local file>
The following example will set the transfer mode to binary and transfer the file
yourfile.tmp:
ftp get binary "yourfile.tmp"
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
FTP PUT
Syntax: FTP PUT [<mode>] <local file> [<remote file>]
This will transfer a file to the currently connected host, as initiated by the ftp connect
command, where
<mode>
<local file>
<remote file>
The following example will set the transfer mode to ASCII and send the file
myfile.tmp:
ftp put ascii "myfile.tmp"
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
12-40
FTP RM
Syntax: FTP RM LOCAL <filespec>
FTP RM REMOTE <filespec>
This FTP file transfer command will remove the specified local or remote file. Refer
to the Error Numbers section later in this chapter for a list of possible error numbers
for this command.
FTP SET
Syntax: FTP SET <mode>
This sets the file transfer mode to ASCII, BINARY or TENEX. Refer to the Error
Numbers section later in this chapter for a list of possible error numbers for this
command.
FTP TOOL
Syntax: FTP TOOL <boolean>
This will display or close the FTP dialog box.
FTP WD
Syntax: FTP WD LOCAL <variable>
FTP WD REMOTE <variable>
This FTP file transfer command will get the local or remote working directory and
place it in a previously defined string variable. Refer to the Error Numbers section
later in this chapter for a list of possible error numbers for this command.
FTU CANCEL
Syntax: FTU CANCEL
This will release the current links between TeemTalk and the file transfer utility
initiated previously by the ftu initiate command. Refer to the Error Numbers section
later in this chapter for a list of possible error numbers for this command.
FTU GET
Syntax: FTU GET <variable> <groupID> <paramID> [<subparamID>]
This command enables you to get information on a particular setting, where
<variable>
is a previously defined string variable (see var) which will store the
information.
12-41
<paramID>
FTU INITIATE
Syntax: FTU INITIATE
Initiates a link to the file transfer utility. If it cannot get a link, then it will try to
launch the utility and re-initiate the link. Once a link is established, TeemTalk will be
in file transfer mode and normal data transmission with the host will not be possible
until the ftu cancel command is sent. Refer to the Error Numbers section later in this
chapter for a list of possible error numbers for this command.
FTU SET
Syntax: FTU SET <groupID> <paramID> [<subparamID> <value>]
This command enables you to set file transfer setup parameters and specify
operations to perform on a remote host, where
<groupID>
<paramID>
12-42
Remote Operations
The following is an example of how you would get a file from a remote host:
ftu set remote get
ftu set how remote
ftu start "my.txt"
This requires that the remote host kermit is running in server mode, which can be
achieved by using the put command as follows:
put "kermit_n_r"
put "server_n_r"
To change the directory on the remote host you will need to include a password
following the name of the directory within the string, separating it from the directory
name by the | (vertical line) character, with no spaces before or after it (unless a space
character is part of the password). For example:
ftu set remote change dir
ftu set how remote
ftu start "\ipc\textfiles|password"
If the | character is not included the command will fail.
Note: Only the remote operation commands listed in the FTU SET
& GET Parameters section of this chapter are valid.
12-43
FTU START
Syntax: FTU START <command>
This will start a file transfer where <command> can either be a variable or a string
which usually relates to the name of the file to send or receive.
The ftu set command is used prior to ftu start to specify whether you are sending or
receiving a file. For example:
ftu set how send
ftu start "fred.doc"
If how is set to remote or local, this would invoke the limited operations available.
For example:
ftu set how local
ftu start "c:\transfer\files"
would change the local directory to that specified, and:
ftu set remote change dir
ftu set how remote
ftu start "\sparc\transfer_files|password"
would change the remote directory to that specified.
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
Note: The remote finish, bye and logout commands will ignore
the string associated with ftu start.
GETINI
Syntax: GETINI <section> <entry> <variable> [<ini file>]
This enables you get a setting from an initialization file, where
<section>
<entry>
<variable>
<ini file>
is a string or string variable which specifies the name of the initialization file. This may be omitted if it is the default file WIN.INI (Windows
3.1) or TT07W.INI (Windows 95/NT).
12-44
GOSUB
Syntax: GOSUB <label>
The program goes to the subroutine beginning at the line with the specified label. If it
does not exist, the program continues with the next line. The program returns to the
line following the gosub when a return command is encountered.
GOTO
Syntax: GOTO <label>
The program unconditionally goes to the line with the specified label. If the label
does not exist, the program continues with the next line.
HCMP
Syntax: HCMP <delay> <string1> [<string2>...]
Enter the terminal emulation and wait for the first occurance of any of the specified
strings from the host, where
<delay>
<string#> can be a literal string or a variable (including integer and floating point).
Any number of strings can be entered. There is no case sensitivity.
The errno (error number) variable will indicate the number of the string matched
according to its position after the hcmp command. Use the brf and brt commands to
test for success or failure.
12-45
HGET
Syntax: HGET <variable> [, <count> [, <timeout>]]
This gets one or more characters from the host and assigns them to the specified variable, where
<count>
is the number of characters to get from the host. If omitted then one
character will be returned.
<timeout>
If the format of the variable is not a string (as defined by the var command) then the
ASCII decimal value of the character(s) will be placed in the variable (e.g. A will be
65).
Note: You can use the conv command to convert the decimal
value to an ASCII character.
Examples:
hget char
hget str, 5
hget str, 5, 10
The system flag will be set to FALSE and the errno (error number) variable will be
set to 0 if a timeout occurs, or TRUE and errno set to 1 if the command was
successful.
HRCV
Syntax: HRCV IGNORE
HRCV PROCESS
HRCV HOLD
This command specifies what happens to characters received from the host while the
script program is running.
When set to ignore, characters will be thrown away. When set to process, characters
will be processed as normal. When set to hold, characters will be held but not
actioned until an hrcv process command is received, except for the hget or hcmp
commands, which will be processed. The ignore, process and hold settings can be
abbreviated to I, P, and H, respectively.
12-46
IF
Syntax: IF <condition>
Informs the program to perform the command(s) on the following line(s) if the
specified condition is true. The else command may be used in conjunction with if.
For example:
if (integer > 3)
goto routine1:
else
goto routine2
If more than one command line is to be associated with if, insert a line containing the
{ (open curly brace) character before the first command line and a line containing the
} (close curly brace) character following the last command line. For example:
if (integer > 3)
{
inc integer
goto routine1:
}
else
goto routine2:
The if command may be used on the same line as else, for example:
if (N == 1)
X=2
else if (N == 2)
X=4
else
X=1
If and associated else commands may be nested up to 32 times.
INC
Syntax: INC <variable> [<variable>...]
Increases the integer or floating point number assigned to the specified variables by
one.
INP
Syntax: INP <string> <variable>
Displays the string as a prompt and causes all following characters typed from the
keyboard to be assigned to the specified variable until the Enter or Return key is
pressed. All future references to the string may be made using the variable name.
12-47
KACT
Syntax: KACT <string>
This command will cause the script program to perform the function of a key as if a
terminal operator had pressed the key on the keyboard. This can be used on its own
or in conjunction with the kraw command to accept and perform an intercepted
keystroke. The <string> must contain the virtual key name of the key to be actioned.
For example:
KACT "VK__RETURN"
will cause the script program to perform the function of the Return key. Refer to the
Virtual Key Names appendix for a list of key names that can be used.
KBD
Syntax: KBD <integer> [<string>]
Sends all following characters typed from the keyboard to the host until the Enter or
Return keys are pressed, where
<integer>
<string>
enables a prompt to be displayed so that you can indicate what the user
has to enter from the keyboard. This may be omitted.
The following example will ask the user to enter his name and will display and send
the input to the host:
kbd 1 "Please Enter Your Name: "
KGET
Syntax: KGET <variable>
This gets a character from the keyboard and assigns it to the specified variable. If the
format of the variable (defined by var) is not a string then the decimal value of the
character will be placed in the variable (e.g. A will be placed as 65). You can use the
conv command to convert the format of the variable if required.
12-48
KINTERCEPT
Syntax: KINTERCEPT <boolean>
When enabled, this command will cause all keystrokes entered by the terminal
operator to be intercepted and stored in a queue so that the script program can take
action on them using the kraw and kact commands. You should disable this function
before the script program is exited.
KPRESS
Syntax: KPRESS <key identifier>
This command will cause the script program to perform the function of the key
identified by its reference number or virtual key name. Refer to the Key Reference
Numbers appendix for a list of valid key reference numbers, and the Virtual Key
Names appendix for a list of key names that can be used.
KRAW
Syntax: KRAW <string>
When keyboard intercept is enabled by kintercept, the kraw command is used to
retrieve each keystroke in turn from the input queue so that it can either be processed,
accepted or rejected by the script program. A string can be intercepted by placing this
command in a loop.
Keystrokes are represented as virtual key names in the same format as a key macro.
For example:
"VK__F1"
the F1 key has been pressed.
"A VK__F1" the F1 key has been pressed with the Alt key held down.
If a key has not been pressed then kraw will return a null string.
KRCV
Syntax: KRCV IGNORE
KRCV PROCESS
KRCV HOLD
This command specifies what happens to characters received from the keyboard
while the script program is running.
When set to ignore, characters will be thrown away. When set to process, characters
will be processed as normal. When set to hold, characters will be held but not
actioned until a krcv process command is received, except for the kget and kbd
commands, which will be processed. The ignore, process and hold settings can be
abbreviated to I, P, and H, respectively.
12-49
KSTR
Syntax: KSTR <string>
This command will treat the characters contained in the string or string variable as
macros to be performed. Refer to the Macros Settings dialog box description in the
Setup Menus chapter for the macro definition format.
More than one macro definition can be specified in the same string or variable. The
string example below will perform the function of the keys Alt + F4 pressed together
followed by the A key:
kstr "<ALT+F4><A>"
LAUNCH
Syntax: LAUNCH <application>
This command enables you launch an application, where
<application>
You can cause the application to run in a minimized state when launched by
including the string "min" after <application>.
The following example will launch the application Excel so that it runs in a
minimized state:
launch "h:\excel\excel.exe" "min"
LEN
Syntax: LEN <length> <string>
This command will count the number of characters including spaces contained in a
string and store the result in a variable, where:
<length>
is a predefined variable (see var) which will store the length of the
string.
<string>
LET
Syntax: LET <expression>
This is an assignment statement which enables you to specify a value or change one
value to another. For example:
let X = Y
12-50
LOW
Syntax: LOW <result> <string>
This command will convert all uppercase characters in a string to lowercase and
place the resulting string in a variable, where
<result>
is a predefined string variable (see var) which will store the converted
string.
<string>
LSTR
Syntax: LSTR <variable> <string> <end>
This command will copy a number of characters from the start of a string and place
them in a variable, where
<variable>
is a predefined string variable (see var) which will store the copied
characters.
<string>
<end>
is the numeric position of the last character to be copied, where the first
character in the string is 1. If this value is greater than the number of
characters in the string then the destination variable will include padded spaces so that it matches the number of characters requested.
MSGBOX
Syntax: MSGBOX <message> <buttons> <result>
This command enables you to display a simple message box with buttons, where
<message> is the message as specified by a string delimited by double quotes or
the name of a previously defined string variable (see var).
<buttons>
<result>
The value of the <buttons> integer is found by adding together the value of each
button required from the following table:
Ok:
Cancel:
Yes:
No:
1
2
4
8
Retry:
Abort:
Ignore:
16
32
64
12-51
MSTR
Syntax: MSTR <variable> <string> <start> [<end>]
This command will copy a number of characters from within a string and place them
in a variable, where
<variable>
is a predefined string variable (see var) which will store the copied
characters.
<string>
<start>
<end>
is the numeric position of the last character to be copied, where the first
character in the source string is 1. If this is omitted then all the characters to the end of the string will be copied. If this value is greater than
the number of characters in the source string then the destination
variable will include padded spaces so that it matches the number of
characters requested. If this value is less than the <start> value then it
will result in an empty string.
12-52
ONERROR
Syntax: ONERROR <action>
This command will perform the specified action when it encounters an error while the
script program is running, where <action> can be one of the following:
REPORT
will display a message box indicating the type of error and the
program line that caused it.
IGNORE
GOTO <label>
will cause the program to go to the line with the specified label
when an error is encountered.
GOSUB <label> will cause the program to go to the line with the specified label
when an error is encountered and then return to the line following the error.
Refer to the Script Error Trapping Functions section later in this chapter.
PACK
Syntax: PACK <result> <string>
This command will remove redundant spaces between ASCII characters in a string,
together with any spaces and tabs before and after the string, and place the resulting
string in a variable.
<result>
is a previously defined string variable (see var) which will contain the
modified string.
<string>
This is useful to prevent an otherwise valid user response becoming invalid due to
extra spaces. See also packtab.
PACKTAB
Syntax: PACKTAB <result> <string>
This command will reduce multiple spaces and/or tabs in a string into a single tab,
convert single spaces into tabs if a digit follows, and place the resulting string in a
variable.
<result>
is a previously defined string variable (see var) which will contain the
modified string.
<string>
This is useful for making data suitable for a spreadsheet. See also pack.
12-53
PARSE
Syntax: PARSE <string> <variable1> <key> <variable2>
This command enables you parse a string using a specified key (e.g. a single
character or a string of characters), where
<string>
<variable#> are two previously defined string variables (see var) into which
characters from the string will be placed.
<key>
If the string contains the key, then all the characters preceding the first instance of the
key will be placed in the string variable specified by <variable1>, and all following
characters will be placed in the second variable. If the key is not found in the string,
then all the characters will be placed in the first variable.
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
PASSWORD
Syntax: PASSWORD <title> <caption> <entry> [<x> <y>]
This command enables you to display a simple dialog box for password entry where
keyboard entered text is displayed as asterisks. The box will have a specified title,
contain two buttons (Ok and Cancel) and a single line text box with a specified
prompt. The command parameters are as follows:
<title>
is the text to be displayed in the title bar of the dialog box, as specified
by a string delimited by double quotes or the name of a previously
defined string variable (see var).
<caption>
is the text that will appear to the left or above the text box, as specified
by a string delimited by double quotes or the name of a previously
defined string variable.
<entry>
<x> <y>
specify the horizontal and vertical position of the top left corner of the
dialog box in relation to the top left corner of the screen in pixels.
These can be integers or variables.
The following example will display a dialog box with the title Password containing a
text box with the prompt Enter your password:, and cause the text entered in the
12-54
PGET
Syntax: PGET <variable> <groupID> <paramID>
This command enables you to get most terminal emulation setup parameters and the
current values of some attributes, where
<variable>
PSET
Syntax: PSET <groupID> <paramID> <value>
This command enables you to set most terminal emulation setup parameters and the
current values of some attributes, where
<groupID> identifies a group of parameters (e.g. host settings).
<paramID> identifies the particular parameter (e.g. baud rate).
<value>
For example, to specify that the baud rate is to be set to 4800 you would enter the
following:
pset host baud 9600
where host is the group ID, baud is the parameter ID, and 9600 is the value.
12-55
PUT
Syntax: PUT <string>
PUT <variable>
Send the string(s) within double quote characters or variable(s) to the host.
QUIT
Syntax: QUIT
The script program terminates and TeemTalk is exited.
RAND
Syntax: RAND <variable>
This will put the next random number into the variable, which can be a floating point
number or string variable. The number will be less than 1. If an integer variable is
used then the variable will always be 0 (zero). See also the description of the seed
command.
12-56
RDPXY
Syntax: RDPXY <variable> <row> <column> <count>
This causes the program to read a specified number of characters from the specified
row and column position in the display buffer and assign them to a previously
defined string variable. Note that the row and column position is relative to the
display buffer, not the current screen display. The top row in the display buffer
designated as row 0. For example, to read twenty characters beginning at row 3 and
column 18 and place them in the variable called name you would enter the
following:
rdpxy name 3 18 20
RDT
Syntax: RDT <variable> <count>
This causes the program to read a specified number of characters from the current
cursor position (wherever it is in the display buffer) and assign them to a previously
defined variable. For example, to cause twelve characters from the cursor position to
be assigned to the variable called name you would enter the following:
rdt name 12
RDTXY
Syntax: RDTXY <variable> <row> <column> <count>
This causes the program to read a specified number of characters from the specified
row and column position on the current screen display and assign them to a
previously defined string variable. Note that the row and column position is relative
to the current screen display, not the display buffer. The top row displayed on the
screen is designated as row 0.
For example, to read twenty characters beginning at row 3 and column 18 and place
them in the variable called name you would enter the following:
rdtxy name 3 18 20
REPLAY
Syntax: REPLAY EMUL <filespec>
REPLAY HOST <filespec>
REPLAY CANCEL
The replay command is used to replay the contents of a file previously created using
the capture command. The replay can be directed to both the emulator and host
(replay emul) or just to the host (replay host). To cancel the replay, issue a replay
cancel command.
12-57
RETURN
Syntax: RETURN
Terminates a gosub command, returning the program to the line following the most
recently encountered gosub which has not yet been terminated.
RST
Syntax: RST
This will reset TeemTalk and cause it to assert the last saved setup configuration.
RSTR
Syntax: RSTR <variable> <string> <number>
This command will copy a number of characters from the end of a string and place
them in a variable, where
<variable>
is a predefined string variable (see var) which will store the copied
characters.
<string>
<number>
SAVESET
Syntax: SAVESET
This will save the current setup configuration so that it can be reasserted when
TeemTalk is subsequently reset or loaded.
SEED
Syntax: SEED <integer>
This will reset the random number generator seed to the integer specified as a string or
variable. See also the description of the rand command.
12-58
SETINI
Syntax: SETINI <section> <entry> <setting> [<ini file>]
This enables you set a setting in an initialization file, where
<section>
<entry>
<setting>
<ini file>
is a string or string variable which specifies the name of the initialization file. This may be omitted if it is the default file WIN.INI
(Windows 3.1) or TT07W.INI (Windows 95 or NT).
The following example will set the protocol setting in the Windows 3.1 WIN.INI
file to cterm.:
setini "tt07w" "protocol" "cterm"
The following example will set the protocol setting in the Windows 95 or NT
TT07W.INI file to tcpip:
setini "startup,default" "protocol" "tcpip" "tt07w.ini"
The Error Numbers appendix lists the possible error numbers for this command.
SUBTITLE
Syntax: SUBTITLE <string>
This enables you to change the subtitle portion of the title bar in the main window.
The subtitle will be separated from the main title by a hyphen.
The specified subtitle can be a string delimited by double quotes or a variable. If no
string is specified, the current contents of the title bar will remain unchanged. No
error numbers will be generated.
12-59
SWITCH
Syntax: (See below)
This is used to compare the value of a variable with a list of possible values and
perform the commands specified for the matching case. The format is as follows:
SWITCH <variable>
{
CASE <value1>
<commands>
CASE <value2> [<value3>...]
<commands>
[DEFAULT
<commands>]
}
where
<variable>
{ and }
mark the beginning and the end of the switch sequence. These
must not be omitted.
CASE <value#> specifies a possible value for the variable, which can be a literal
string, a variable or a number. Note that you can specify more than
one value on the same line by separating each value by a comma
and/or space. If the value of the variable matches the case value
then the <commands> on the following line(s) will be performed.
<commands>
DEFAULT
SYSERR
Syntax: SYSERR <boolean>
This is used to enable or disable the display of error message boxes. The boolean
value may be 0 or 1, No or Yes, False or True, OFF or ON. The value may be
abbreviated to the characters shown in uppercase.
12-60
TCMP
Syntax: TCMP <delay> <row> <column> <string>
This will wait for the specified <string> to appear on the screen at the start location
specified by <row> and <column>, where
<delay>
is the number of seconds to wait for the specified string. If the string is
received within the time period, the system flag is set to TRUE,
otherwise the flag is set to FALSE. The program then continues with the
next line. If the time delay value is zero, the program will wait
indefinitely until the string is matched.
<string>
Use the brf and brt commands to test for success or failure.
TITLE
Syntax: TITLE <string>
This enables you to change the title displayed in the title bar of the main window.
The specified title can be a string delimited by double quotes or a variable. An invalid
title will set the errno (error number) variable to 1.
TOOLBAR ADD
Syntax: TOOLBAR ADD <bitmap> <command>
This will add a button tool to the end of the current set of displayed buttons, where
<bitmap>
<command> can be a key macro string (as described in The Toolbar chapter), or an
integer that relates to a standard command that is listed in the Button
Tools dialog box as follows:
0
1
2
3
4
5
6
7
8
12-61
12-62
TOOLBAR DEL
Syntax: TOOLBAR DEL <position>
This will delete the tool button or space at the specified position in the toolbar, where
<position>
is an integer that specifies the position in the toolbar where the button
or space for deletion is located. The first item in the toolbar, whether it
is a button or a space, is at position 1. You must include any spaces in
the count.
TOOLBAR FIX
Syntax: TOOLBAR FIX
This will fix the toolbar under the menu bar.
TOOLBAR FLOAT
Syntax: TOOLBAR FLOAT
This will cause the tool buttons to be displayed in a floating window.
TOOLBAR HIDE
Syntax: TOOLBAR HIDE
This will remove the toolbar from the display.
TOOLBAR INS
Syntax: TOOLBAR INS <position> <bitmap> <command>
TOOLBAR INS <position> [space]
This enables you to insert a tool button or space immediately before the specified
position in the toolbar, where
<position>
is an integer that specifies the position in the toolbar before which the
button or space is to be inserted. The first item in the toolbar, whether
it is a button or a space, is at position 1. You must include any spaces
in the count.
12-63
<command> can be a key macro string (as described in The Toolbar chapter), or an
integer that relates to a standard command that is listed in the Button
Tools dialog box. Refer to the Button Tool Command Selection
section later for a list of standard commands and related integers.
[space]
UPP
Syntax: UPP <result> <string>
This command will convert all lowercase characters in a string to uppercase and
place the resulting string in a variable, where
<result>
is a predefined string variable (see var) which will store the converted
string.
<string>
VAR
Syntax: VAR $<name> [<string>]
VAR %<name> [<integer>]
VAR !<name> [<floating point number>]
Specifies one or more variable names for storing one of three types of variable. The
value of the variable may be defined as part of the command or omitted for entering
later, in which case the value will be zero or an empty string.
The name specified for a string variable must be immediately preceded by the $
(dollar) character. For example, to specify an empty string variable with the name
Identity you would enter the following:
var $Identity
The name specified for an integer variable must be immediately preceded by the %
(percent sign) character. For example, to specify an integer variable with the name
number and with a value of 3 you would enter the following:
var %number 3
The name specified for a floating point number (e.g. 0.45) variable must be
immediately preceded by the ! (exclamation mark) character. For example, to specify
a floating point number variable with the name float and with a value of 0.45 you
would enter the following:
12-64
WAIT
Syntax: WAIT <time>
Causes the host to wait for the specified time in seconds. The default time is one
second.
WHILE
Syntax: WHILE <condition>
Informs the program to perform the command(s) on the following line(s) while the
specified condition is true. For example:
while (integer < 10)
inc integer
If more than one command line is to be associated with while, insert a line containing
the { (open curly brace) character before the first command line and a line containing
the } (close curly brace) character following the last command line.
For example:
while (integer < 10)
{
inc integer
12-65
WRT
Syntax: WRT <string(s)>
Displays string(s) delimited by double quote characters at the current cursor position.
Variables (such as identity in the example below) can also be included.
The following example will display User = followed by the contents of the variable
identity and then perform a line feed (_n) and carriage return (_r).
wrt "User = ", identity, "_n_r"
12-66
Error Numbers
You can incorporate a special variable called errno in your script file which will be
used to store a number indicating the result of a command (i.e. success or type of
failure). The errno variable is an integer variable which is already defined as part of
the script language, that is, you do not need to use the var command to include it in
your script file. When the command is successful, the numeric value 0 will be
assigned to errno.
The following list shows the possible error numbers for various commands and their
meaning.
CLIPBD EMPTY
0
1
2
3
CLIPBD READ
0
1
2
3
4
5
CLIPBD WRITE
0
1
2
3
4
DDE
0
-1
12-67
FILE
0
1
2
3
4
5
6
7
8
9
10
11
12
13
FTP
0
1
2
3
12-68
Transaction done.
Unknown packet.
Cancelled.
Too many retries.
File open error.
File read error.
File write error.
File close error.
Sending.
Send initialize error.
Send filename error.
Send data error.
Send end of file error.
Send end of transmission error.
Cannot initiate file transfer utility.
File transfer quitted.
Remote dialog open error.
Send command error.
Send error.
Cancelled (all transfer protocols except Kermit).
Timed out (all transfer protocols except Kermit).
Receive error (all transfer protocols except Kermit).
Packet sequence error (all transfer protocols except Kermit).
No files to send.
Printer open error (Kermit).
Transfer aborted (XMODEM, YMODEM, ZMODEM).
GET
0
1
LAUNCH
0
1
12-69
PARSE
0
1
2
PASSWORD
0
1
2
3
TITLE
0
1
12-70
ONERROR
Syntax: ONERROR <action>
This command will perform the specified action when it encounters an error while
the script program is running, where <action> can be one of the following:
REPORT
will display a message box indicating the type of error and the
program line that caused it.
IGNORE
GOTO <label>
will cause the program to go to the line with the specified label
when an error is encountered.
GOSUB <label> will cause the program to go to the line with the specified label
when an error is encountered and then return to the line following the error.
ERRORLINE
Syntax: ERRORLINE <variable>
This command will return the line number of the last error.
ERRORCODE
Syntax: ERRORCODE <variable>
This command specifies the type of error code that will be returned when an error is
encountered. Specifying an integer variable will return an error ID number, while a
string variable will return an error message. The following list shows the ID codes
and error messages that can be displayed, and their meanings.
12-71
Message Displayed
Meaning
Syntax error
Variable expected
Integer expected
String expected
Boolean expected
Invalid expression
Invalid parameter
10
11
12
13
14
Invalid subcommand
15
Invalid GroupID
16
Invalid ParamID
17
Invalid SubParamID
18
12-72
The Value will be in one of the following formats if not specifically given:
immediate
boolean
string
range
Network Settings
Host Name:
Protocol (Windows 3.1):
GroupID
ParamID
Value
NETwork
NETwork
NODEname
PROTocol
12-73
ParamID
(Windows 95/NT):
NETwork
PROTocol
Port Number:
Connect To Host:
Close Host Connection:
NETwork
NETwork
NETwork
PORT
CONNect
CLOSE
Value
NCSI
NETBIOS
NETWLAT
NETWTCP
NEWT
NSVT
NWSAA
OSLAN
PATHWay
PCNFS
PCTCP
TEEMTALKOSI
TELAPI
WINSOCK
NONE
SERIAL
CTERM
LAT
MULTILAN
NETBIOS
TCPIP
TEEMTALKOSI
WINSOCK
WINSOCK2
range 0 - 65535
immediate
immediate
Telnet Options
Telnet Port Number:
Telnet Name:
Suppress Echo:
Force Binary Mode:
Force EOR Mode:
For Break Send TM:
For Break Send CR:
12-74
GroupID
ParamID
Value
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
TELNETPORT
TELNETNAME
ECHOSUPPRESS
FORCEBINARY
FORCEEOR
BREAKTM
BREAKCR
range 0 - 65535
"string" max 80 chrs
boolean
NO, DONT, DO
NO, DONT, DO
boolean
boolean
ISDN Settings
Remote Dial Number:
Remote Dial Sub Address:
Controller Card Number:
B1 Physical Layer:
B2 Data Layer:
B3 Network Layer:
Local Dial Number:
Local Dial Sub Address:
Channel:
B1 Baud Rate:
B1 Data Bits:
B1 Parity Bits:
B1 Stop Bits:
B2 Address A:
B2 Address B:
B2 Modulo (8/128):
B2 Window Size:
B2 XID:
B3 Lowest Incoming Ch.:
B3 Highest Incoming Ch.:
B3 Lowest 2-Way Ch.:
B3 Highest 2-Way Ch.:
B3 Lowest Outgoing Ch.:
B3 Highest Outgoing Ch.:
B3 Modulo (8/128):
B3 Window Size:
GroupID
ParamID
Value
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
NETwork
ISDNDIAL
ISDNDIALSUBADDRESS
ISDNCONTROL
ISDNB1
ISDNB2
ISDNB3
ISDNLOCALNUMBER
ISDNLOCALSUBADDRESS
ISDNUSECHAN
ISDNB1RATE
ISDNB1LEVEL
ISDNB1PARITY
ISDNB1STOPS
ISDNB2ADDRESS_A
ISDNB2ADDRESS_B
ISDNB2MODULO
ISDNB2WINDOWSIZE
ISDNB2XID
ISDNB3LIC
ISDNB3HIC
ISDNB3LTC
ISDNB3HTC
ISDNB3LOC
ISDNB3HOC
ISDNB3MODULO
ISDNB3WINDOWSIZE
"string"
"string"
1 - 127
0-5
0-5
0-3
"string"
"string"
0-2
0 - 65535
0 - 65535
0-2
0-2
0 - 255
0 - 255
0 or 1
0 - 255
0 - 65535
0 - 65535
0 - 65535
0 - 65535
0 - 65535
0 - 65535
0 - 65535
0 or 1
0 - 65535
Printer Settings
Printer Device:
Default Printer:
Print Buffer
FormFeed Terminator:
Use Print Manager:
Print Man. Pass Through:
Translate National Chrs:
Seconds Close Delay:
GroupID
ParamID
Value
PRINTer
PRINTer
PRINTer
PRINTer
PRINTer
PRINTer
PRINTer
PRINTer
DEVice
DEFault
BUFFER
FFTerm
USEPrintman
PASSthru
TRANSlate
CLOSEDELAY
"string"
"string"
immediate
boolean
boolean
boolean
boolean
range 0 - 65535
12-75
ParamID
Value
PRINTer
PRINTer
PRINTer
PRINTer
PRINTer
PRINTer
SCReen
USERESolution
AWRAP
CENTRE
SCALE
GRMODE
PRINTer
PRINTer
PRINTer
AUTO
CANCEL
EJECTpage
TEXT, GRaph
boolean
boolean
boolean
range 1 - 100
NORMal, SWAP,
MONO, MONOSwap
boolean
not applicable
not applicable
Serial Settings
GroupID
ParamID
Value
HOST
HOST
USE
PORT
Baud Rate:
HOST
BAUDrate
Parity:
HOST
PARity
Flow Control:
HOST
FLOWcontrol
Data Bits:
Stop Bits:
Transmit Rate:
On Line:
Local Echo:
Detect Carrier:
Test for DCD:
Test for CTS:
HOST
HOST
HOST
HOST
HOST
HOST
HOST
HOST
DATAbits
STOPbits
TXLimit
ONLine
HALFduplex
DCDDetect
DCDTest
CTSTest
immediate
COM1 - COM4 (16-bit)
COM1 - COM8 (32-bit)
None
16-bit: 50, 75, 110, 134,
150, 200, 300, 1200,
1800, 2400, 4800, 9600
9600, 19200, 38400
32-bit: 110, 300, 600,
1200, 2400, 4800,
9600, 19200, 38400,
57600, 115200
None, Odd, Even,
Mark, Space
None, INPut, OUTput
INOUT, HARDware,
DTR
6, 7, 8
1, 1.5, 2
range 0 - ?
boolean
boolean
boolean
boolean
boolean
12-76
NCSI Settings
GroupID
ParamID
Value
Baud Rate:
NCSi
BAUDrate
Parity:
NCSi
PARity
Flow Control:
NCSi
FLOWcontrol
Data Bits:
Stop Bits:
Show Port Details:
NCSi
NCSi
NCSi
DATAbits
STOPbits
PORTdetail
GroupID
ParamID
Value
SESSion
SESSion
SESSion
SESSion
SESSion
SESSion
SESSion
SESSion
SAVEMacros
SAVESoftbuttons
SAVEAttrs
SAVEWindow
SAVERows
SAVEBuffer
SAVEConnection
SAVETerminal
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Emulation Settings
GroupID
ParamID
Value
Emulation:
EMULation
MODe
Code 1 Selects:
EMULation
CODe
Terminal ID:
EMULation
ID
VT52, VT100
TEK, EDit
VT2207, VT2208
W3220
ANSI, VT2207
VT2208
VT100
VT220
12-77
ParamID
Value
EMULation
EMULation
MULTinational
CTRLdisplay
boolean
boolean
GroupID
ParamID
Value
Keyboard Language:
TERMinal
KEYBoard
LF Implies CR:
CR Implies LF:
Ignore Deletes:
Application Keypad:
Application Cursor Keys:
Scroll Bar on Maximize:
Report Max. Line Length:
Bypass Cancel Character:
End Of Line Characters:
End Of Message Characters:
End Of Message Frequency:
TERMinal
TERMinal
TERMinal
TERMinal
TERMinal
TERMinal
TERMinal
TERMinal
TERMinal
TERMinal
TERMinal
NEWLine
AUTOLF
IGNoredeletes
APPLKEYpad
APPLCURSor
MAXSCrollbar
REPLength
BYpass
EOLChar
EOMChar
EOMFReq
Terminal:
TERMinal
TYPe
Answerback String:
Answerback Concealed:
TERMinal
TERMinal
ANSWerback
CONCEAL
AMerican / USa
BRitish / UK
FLemish
CAnadian
DAnish
FInnish
GErman
DUtch / HOlland
ITalian
SWFrench
SWGerman
SWEdish
NOrwegain
FRench / BElgian
SPanish
POrtuguese
boolean
boolean
boolean
boolean
boolean
boolean
range 0 - 65535
"string" max 2
"string" max 4
"string" max 4
Low
High
4207
4105
4111
"string" max 32
boolean
Multinational:
Display Controls:
Terminal Settings
12-78
Dialog Settings
GroupID
ParamID
Burst Scroll:
Auto Wrap:
Dialog Indices Locked:
Dialog Area Visible:
Cursor Origin:
DIALog
DIALog
DIALog
DIALog
DIALog
BURSTscroll
WRAPeol
LOCKINDices
DAVISible
ORIGin
Cursor Style:
DIALog
Columns:
Resize Font:
Rows:
DIALog
DIALog
DIALog
DIALog
DIALog
DIALog
Value
boolean
boolean
boolean
boolean
ABSolute
RELative
CURSortype
UNDerline
BLOCK
COLumns
80, 132
NOFONTRESize boolean
ROWS
range depends on
font size & resolution
DALines
range 2 - rows
DABuffer
range 2 - 100
DAENable
tt05w: boolean
tt07w: boolean
tt11w: range 0 - 1
Gin Settings
GroupID
ParamID
Value
Tablet Type:
GIN
TABLet
GIN
PORT
GIN
GIN
TABChars
MAPmouse
MM1201
MM1812
BITPad
CALcomp
MOUse
COM1, COM2
COM3, COM4
None
"string" max 4 chars
boolean
12-79
Attribute Settings
Colour Selection
GroupID
ParamID
ATTRibutes
ATTRibutes
ATTRibutes
MAP##Red
range 0 - 100
(where ## is colour index in range 00 to 15)
MAP##Green
range 0 - 100
MAP##Blue
range 0 - 100
Value
Screen Index:
ATTRibutes
BCKINDSCRN
range 0 - 15
Preferences
Inverse Colours:
AutoColour:
GroupID
ParamID
Value
ATTRibutes
ATTRibutes
INVColour
AUTOcolour
boolean
boolean
ATTRIBUTE DISPLAY
You can disable one or more attributes associated with the following text foreground
or background index commands by entering the following characters immediately
after the colour index:
B Disable bold attribute
F Disable flashing attribute
For example, to make characters with the underline and bold attributes appear on the
screen with the colour assigned to index 3 but not underlined or bold, you would
issue the following command:
PSET ATTRIBUTES FRGINDUNDBOLD 3UB
Characters with the bold attribute can be displayed as true bold instead of highlighted
by including the + (plus) character immediately after the colour index.
The Value in the following tables consists of an integer in the range 0 to 15,
specifying the colour index, which may be followed by any of the disable attribute
characters described above if relevant.
12-80
ParamID
ATTRibutes FRGINDNORM
ATTRibutes FRGINDBOLD
ATTRibutes FRGINDUNDER
Value
0 - 15[char]
0 - 15[char]
0 - 15[char]
GroupID
ParamID
Value
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
FRGINDUNDBOLD
FRGINDFLASH
FRGINDFLBOLD
FRGINDFLUNDER
FRGINDFLUNDBOLD
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
GroupID
ParamID
Value
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
FRGINDINV
FRGINDINVBOLD
FRGINDINVUNDER
FRGINDINVUNDBOLD
FRGINDINVFLASH
FRGINDINVFLBOLD
FRGINDINVFLUNDER
FRGINDINVFLUNDBOLD
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
GroupID
ParamID
Value
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
BCKINDNORM
BCKINDBOLD
BCKINDUNDER
BCKINDUNDBOLD
BCKINDFLASH
BCKINDFLBOLD
BCKINDFLUNDER
BCKINDFLUNDBOLD
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
GroupID
ParamID
Value
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
ATTRibutes
BCKINDINV
BCKINDINVBOLD
BCKINDINVUNDER
BCKINDINVUNDBOLD
BCKINDINVFLASH
BCKINDINVFLBOLD
BCKINDINVFLUNDER
BCKINDINVFLUNDBOLD
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
0 - 15[char]
12-81
Keyboard Macros
Keyboard macros may be specified using Tektronix key reference numbers or virtual
key names. A variable can also be specified for the ParamID.
GroupID Qualifier
Delete All Macros:
ParamID
MACROs DELALL
Value
immediate
The following commands use the Tektronix key reference numbers listed in the Key
Reference Numbers appendix.
Program Key:
Non-Volatile:
Default Setting:
GroupID Qualifier
ParamID
Value
MACROs
MACROs NV
MACROs DEFault
key ref #
key ref #
key ref #
"string" max 80
boolean
immediate
The following commands use the virtual key names listed in the Virtual Key Names
appendix.
GroupID Qualifier
ParamID Value
Normal Key:
Shifted Key:
Control + Key:
Control + Shift Key:
Alt + Key:
MACROs
MACROs
MACROs
MACROs
MACROs
COMmand
Shift
Ctrl
Ctrl Shift
Alt
key name
key name
key name
key name
key name
"string" max 80
"string" max 80
"string" max 80
"string" max 80
"string" max 80
Non-Vol. Normal:
Non-Vol. Shifted:
Non-Vol. Control :
Non-Vol. Ctrl + Shift:
Non-Vol. Alt:
MACROs
MACROs
MACROs
MACROs
MACROs
NV
NV Shift
NV Ctrl
NV Ctrl Shift
NV Alt
key name
key name
key name
key name
key name
boolean
boolean
boolean
boolean
boolean
Default Normal:
Default Shifted:
Default Control :
Default Ctrl + Shift:
Default Alt:
MACROs
MACROs
MACROs
MACROs
MACROs
DEfault
DEfault Shift
DEfault Ctrl
DEfault Ctrl Shift
DEfault Alt
key name
key name
key name
key name
key name
immediate
immediate
immediate
immediate
immediate
12-82
GroupID
ParamID
Value
EURosign
EURosign
EURosign
SENds
RECeived
PRInts
"string"
"string"
"string"
Soft Buttons
The ParamID setting SB#L# specifies the soft button number (SB#) which can be
any number between 1 and 12 inclusive, and the level number (L#) which can be 1 to
4. For example, SB4L2 specifies soft button 4 on level 2.
GroupID
Buttons Visible:
Program Button:
Button Name:
Action Locally:
Default Setting:
No. Of Levels Displayed:
Top Level:
Level Title:
Qualifier
ParamID
BUTTons
VISible
BUTTons COMmand SB#L#
BUTTons NAMe
SB#L#
BUTTons LOCal
SB#L#
BUTTons DEFault
SB#L#
BUTTons
SHOWlevel
BUTTons
LEVel
BUTTons
L#TITle
Value
boolean
"string" max 80
"string" max 10
boolean
immediate
1 to 4
1 to 4
"string" max 7
Normal:
Shift:
Control:
Control + Shift:
Alt:
Double Click:
Left Button
Right Button
L
LS
LC
LCS
LA
LDC
R
RS
RC
RCS
RA
RDC
GroupID
ParamID
Value
MOUSE
MOUSE
*_STRing
*_ACTion
"string"
see below
EDITPaste
SHOWhotspots
ACTionhot
MOVEcursor
SENDCR
SENDKEYword
MIDdlebutt
RECTselect
WORDselect
COPYselect
12-83
ParamID
Value
CURRent
CURRent
"string" A - ?
Current Environment:
CURRent
DRIVE
DIRectory
PWD
CWD
ENVironment
CURRent
CURRent
CURRent
TIMe
DAY
FULLDATE
CURRent
TICKcount
Note: When using the Get Milliseconds command, the value will
return to 0 (zero) after approximately 49.7 days.
12-84
ParamID
Value
CURRent KBDLock
(boolean)
CURRent HLDSCR
(boolean)
CURRent SCReen
boolean
CURRent MENU
boolean
CURRent SCROLL
boolean
CURRent CURSor
boolean
MOUSE
TYPE
0 - 10
(See table in Initialization Commands)
CURRent ROW
range 0 - ?
CURRent COLumn
range 0 - ?
CURRent REVersevideo boolean
CURRent DWline
immediate
CURRent SWline
immediate
CURRent DHTop
DOUBLE
immediate
CURRent DHBottom
immediate
CURRent CLR
immediate
CURRent UL
UNDERline
immediate
CURRent IV
INVerse
immediate
ParamID
Invisible Attribute:
CURRent
Flashing Attribute:
Highlight (Bold/Dim) Attribute:
CURRent
CURRent
CURRent
CURRent
CURRent
BLank
SECurity
FLashing
BD
BOLD
HB
HALFBright
NORMal
LD
LINEdrawing
FG
CURRent
BG
Value
immediate
immediate
immediate
immediate
boolean
BLAck
BLUe
RED
GREen
MAGenta
CYAn
YELlow
WHite
BLAck
BLUe
RED
GREen
MAGenta
CYAn
YELlow
WHIte
12-85
The Value will be in one of the following formats if not specifically given:
immediate
boolean
string
range
integer
GroupID
ParamID
Value
TRANSFER
TRANSFER
TRANSFER
TRANSFER
TRANSFER
TRANSFER
KERMIT
XMODEM
XMODEM-1K
YMODEMBATCH
ZMODEM
ASCII
immediate
immediate
immediate
immediate
immediate
immediate
12-86
GroupID
ParamID
SubParamID Value
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
GENERAL
GENERAL
GENERAL
GENERAL
GENERAL
GENERAL
TIMer
BELl
DIScard
FILEWarn
SENDDelay
RETRYlimit
boolean
boolean
boolean
boolean
range 0 - 63
range 1 - 63
GroupID
ParamID SubParamID
Value
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
KERMIT
"string"
"string"
integer
integer
integer
integer
"string"
"string"
"string"
"string"
"string"
"string"
integer
integer
range 1 - 3
boolean
"string"
SMARK
RMARK
STIMEOUT
RTIMEOUT
SPADCOUNT
RPADCOUNT
SPADCHAR
RPADCHAR
SEOL
REOL
SQUOTE
RQUOTE
SMAXPKTLEN
RMAXPKTLEN
BLOCKCHECK
REQFILENAME
LOCALFILE
ParamID
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
PARAMETER
ASCII
ASCII
ASCII
ASCII
ASCII
ASCII
ASCII
ASCII
SubParamID
SENDCRTRANS
RECVCRTRANS
SENDLFTRANS
RECVLFTRANS
SENDPACECHAR
RECVPACECHAR
SENDPACETIME
EXPANDBLANKS
Value
"string"
"string"
"string"
"string"
"string"
"string"
integer
immediate
ParamID
SubParamID
Value
NONE
BINARY
ASCII
RESUME
as above
12-87
ParamID
SubParamID
Value
ParamID
Value
How To Transfer:
HOW
LOCAL
REMOTE
REMOTE
REMOTE
REMOTE
REMOTE
REMOTE
REMOTE
SEND
RECEIVE
REMOTE
LOCAL
CHANGE DIR
COMMAND
CHANGE DIR
GET
ERASE
FINISH
LOGOUT
BYE
immediate
immediate
immediate
immediate
(see note below)
(see note below)
(see note below)
(see note below)
immediate
immediate
immediate
immediate
Note: The ftu set remote get, ftu set remote/local change dir and
ftu set remote command commands have their values
specified on the ftu start command line.
12-88
13
Dynamic Data Exchange
This chapter describes the support of dynamic data exchange (DDE) by
TeemTalk.
Introduction
With the adoption of a standard user interface within the Microsoft Windows
environment, personal computer users are becoming accustomed to the formalised
methods by which keystrokes and mouse actions have a common effect, making it
easier for users to become familiar with and switch between a whole range of
unrelated but important applications.
This commonality extends beyond just the look and feel of applications. The
ability to share data between totally independent applications must by now be a very
familiar operation to many Windows users. Generally this is achieved by using the
EDIT facilities of an application - either by copying, cutting or pasting portions of
required information. These operations make use of the Windows system
clipboard. The clipboard is a temporary repository of information that requires
direct involvement of the user to initiate and complete transfer of text or graphics
data. Such a means of transferring information is completely manual in its operation.
The user issues a command in an application to copy or cut selected data to the
clipboard, then in another application the user issues a command to paste the data
from the clipboard into that applications workspace.
Dynamic Data Exchange, or DDE, is an altogether more sophisticated means of
sharing data between applications and, as suggested by its name, the ability to make
on the fly links between applications becomes a reality. DDE is most appropriate
for data exchanges that do not require ongoing user interaction. Normally an
application provides a method for the user to establish the link between applications
exchanging data. But once that link is established, the data exchanges between
applications with no further user involvement. DDE can be used to implement a
broad range of application features including:
Linking to real-time data, such as stock market updates, scientific instruments,
or process control.
13-1
includes a chart produced by a graphics program. Using DDE, the chart will
change when the source data is changed, while the rest of the document remains
the same.
Performing data queries between applications, such as a spreadsheet querying
13-2
DDE Terminology
In order to achieve a degree of understanding of the concepts of DDE, it is important
to have a grasp of some of the terminology used to describe the protocol. Two
applications co-operating in a DDE link are considered to be engaged in a DDE
conversation. The application that initiates the conversation is the client application;
and the responding application is the DDE server application. An application can be
engaged in several conversations at the same time and is capable of acting both as a
client in some conversations and as a server in others. The units of data that are
passed between client and server DDE applications are identified by a three level
hierarchy of item, topic and application name.
Each DDE conversation can be uniquely defined by the application name and topic.
As discussed in the previous example, at the beginning of a DDE conversation the
client and server agree upon the application name and topic. The application name is
usually the name of the server application. The topic is a general classification of
data within which multiple data items may be exchanged during conversation. For
applications that operate on file-based documents, the topic is usually a file name.
For other applications the topic is an application-specific name.
A DDE data item is the actual information related to the conversation topic that is
exchanged between applications. Values for the data item can be passed from the
server to the client, or from the client to the server.
Once a DDE conversation has begun, the client can establish one or more permanent
data links with the server. A data link is a communication mechanism by which the
server notifies the client that the value of a given data item has changed. The data
link is considered as permanent because this notification process continues until the
data link or the DDE conversation itself is terminated.
13-3
These two functions do not directly invoke a DDE link to another application. Instead,
they ensure all the information that Microsoft Excel would require to establish a
DDE link with TeemTalk is copied to the clipboard. This information consists of item,
topic and application names that TeemTalk would recognise when asked to invoke a
DDE link.
The reason why there are two DDE entries in the Edit menu is to provide the necessary
formatting information to enable data to be pasted into a Microsoft Excel
spreadsheet as a row or column of cells. When data is copied, the end of each line in
the highlighted area of the display is terminated by a TAB character when DDE Row
Copy is selected, and CR and LF characters when DDE Column Copy is selected.
Each line is then treated as a separate portion of data or string, which can then be
pasted into separate cells.
Excel recognises these strings as DDE formulae and more importantly as formulae that
would provide data links to TeemTalk. Negotiation then goes on in the form of hidden
windows messages between Excel and TeemTalk and eventually the link is established
(in this situation Excel is the DDE Client with TeemTalk the Server).
DDE permanent links with TeemTalk are not just limited to Excel, however. With the
knowledge of how to set up a permanent link, it is then possible to get TeemTalk to
converse with almost anything.
To establish a link, a client DDE application requires information in the form of
application name, topic name and item name. The application name is easy. If
youre running TeemTalk-07W, then the application name is TT07W. Similarly, for
TeemTalk-11W it is TT11W. The topic name is slightly more difficult as it varies
according to the instance(s) of TeemTalk currently running within the Windows
environment. By default the first instance has a topic of TTLK1, the second TTLK2,
and so on. The easiest way to determine this is to perform a DDE copy of data to the
clipboard within the instance of TeemTalk under question, then using the clipboard
viewer (usually located within the Main Group box), determine what data TeemTalk
has placed into the clipboard. The data is placed in the following form:
13-4
13-5
File Transfer
TeemTalk for Windows 3.1 (not Windows 95 or NT) supports DDE links with its file
transfer executable, TTFLER.EXE, distributed with the standard TeemTalk package.
Without getting too deep into the internal windows messages that are transmitted, the
link between TeemTalk and TTFLER can briefly be summarised as follows.
All data communications between the two applications are Cold links. That is, each
exchange of data needs to be invoked via an explicit request for it from one or the
other partners. TeemTalk in fact initiates the link and as such is considered to be the
Client. Once the link is established, TeemTalk does not try and display or act upon any
subsequent data it receives from the currently connected host. All data is deemed to
be of importance to the file transfer utility and so is just buffered up and sent across
the DDE link when requested to do so. In a similar fashion, the file transfer utility
also has a monopoly on the transmission of data, so all input to TeemTalk is ignored,
except for that sent to it via the DDE link, which will then be directed on to the host.
This situation continues until the File Transfer Utility sends a message to TeemTalk
that it has finished, which then allows TeemTalk to revert to its normal mode of
operation.
Slave Mode
TeemTalk for Windows 3.1 (not Windows 95 or NT) provides a Slave mode which
allows another Windows based application to send formatted data to be interpreted
by TeemTalk. For example, a Windows based package could be written to send
Tektronix 4207 escape sequences which could be interpreted by TeemTalk-07W, and
thereby the application could use the capabilities of TeemTalk-07W to display the
resultant image.
One way that a process can act as a DDE client to TeemTalk is by initiating a DDE
link specifying a particular topic of "Slave", coded as follows:
atomApplication = GlobalAddAtom("TT07W");
atomTopic = GlobalAddAtom("Slave");
SendMessage(
-1,
WM_DDE_INITIATE,
hwndClientDDE,
MAKELONG(atomApplication, atomTopic)
);
GlobalDeleteAtom(atomApplication);
GlobalDeleteAtom(atomTopic);
In this example, connection would be attempted between the client and the TeemTalk07W program, assuming that this was named TT07W.EXE.
13-6
13-7
The important call here is PartnerSentData, which actually does the processing of
the received data. The lpPokeData->Value parameter, although defined in the
DDE.H file as a character array containing 1 character, serves as a pointer to a larger
block of data defined as follows:
a) An INTEGER value reflecting the number of bytes of valid data sent,
followed by
b) The data.
This is done in clipboard CF_TEXT format, so each block of data is terminated with
a CR, a LF and a NULL.
The function returns TRUE if successful, or FALSE if not. Note that upon receipt of
a FALSE return, ClientReceivedPoke will send a negative DDE ACK message back
to TeemTalk to reflect the failure.
Sending data to TeemTalk requires the client to post a WM_DDE_POKE message,
with a pointer to the data as defined previously (i.e. the first 2 bytes constitute a
integer count of the number of bytes of data, followed by those bytes, and appended
with CR, LF, NULL). A possible way of doing this is as follows.
Note: This example does not contain any allowances for DDE
messages that are awaiting ACKnowledgement from the
partner, or provision of timeouts in the event of a DDE
message not being ACKnowledged. iData and iValcount
should be set to the same value, the reason for having these
two parameters will become clear later on.
13-8
/*
/*
/*
/*
/*
/*
{
ATOM
atomItem;
HANDLE
hPokeData;
DDEPOKE FAR * lpPokeData;
LPSTR
pTemp;
/* Allocate size of DDE data header, plus the data: a string */
/* terminated by <CR> <LF> <NULL>. The <NULL> is counted by */
/* by DDEPOKE.Value[1]. */
if (!(hPokeData = GlobalAlloc(GMEM_MOVEABLE | GMEM_DDESHARE,
(LONG)sizeof(DDEPOKE) + iValCount + sizeof(int) + 2)))
return;
if (!(lpPokeData = (DDEPOKE FAR*)GlobalLock(hPokeData)))
return;
lpPokeData->fRelease = TRUE;
lpPokeData->cfFormat = CF_TEXT;
pTemp = lpPokeData-> Value;
*(int far *)pTemp = iData;
pTemp += sizeof(int);
if (iValCount)
_fmemcpy(pTemp, szValue, iValCount);
/* each line of CF_TEXT data is terminated by CR/LF */
lstrcpy((LPSTR)(pTemp + iValCount), (LPSTR)\r\n);
GlobalUnlock(hPokeData);
atomItem = GlobalAddAtom((LPSTR)szItem);
if (!PostMessage(
hWndPartnerDDE,
WM_DDE_POKE,
hWnd,
MAKELONG(hPokeData, atomItem))
)
{
GlobalDeleteAtom(atomItem);
GlobalFree(hPokeData);
}
return;
}
13-9
Example 1
Get the serial communications port speed.
GetBaudRate()
{
int iBaud;
if ((BaudID = GetSetting(hWnd, hWndPartner, IDM_HOST,
BAUDGROUP, 0)) == -1)
return -1;
switch(BaudID)
{
case B110:
iBaud = 110;
break;
case B300:
iBaud = 300;
break;
case B600:
iBaud = 600;
break;
case B1200:
iBaud = 1200;
break;
13-10
2400;
4800;
9600;
19200;
Example 2
Read the currently defined Answerback string and place in given buffer.
GetAnswerback(LPSTR szAnswer, int iAnsLen)
{
ATOM aAnswer;
int iStrLen;
aAnswer = (ATOM)GetSetting(hWnd, hWndPartner, IDM_EMUL,
ANSSTRING, 0);
if (aAnswer == -1)
return -1;
iStrLen = GlobalGetAtomName(aAnswer, szAnswer, iAnsLen);
GlobalDeleteAtom(aAnswer);
return iStrLen;
}
13-11
127);
/* Key to be redefined */
/* Pointer to redefinition string */
/* Max allowed Length of
szMacroString */
)
{
ATOM aMacro;
int iStrLen;
aMacro = (ATOM)GetSetting(
hWnd,
hWndPartner,
IDM_MACROS,
NKEYSTRING,
iKeyIndex
);
if (aMacro == -1)
return - 1;
/* Convert received Atom to string */
iStrLen = GlobalGetAtomName(aMacro, szKbdMacro, iMacroLen);
GlobalDeleteAtom(aMacro);
return iStrLen;
}
GetSetting(HWND hWndSlaveDDE, HWND hWndPartner, int MenuID, int
DataGroup, int iValue)
{
DWORD lSetting;
ATOM aItem;
char buf[16];
int data;
13-12
13-13
13-14
= B110;
= B300;
= B600;
= B1200;
= B2400;
= B4800;
= B9600;
= B19200;
-1;
13-15
Example 3
Set the keyboard macro assigned to the Shift + F6 key sequence to Hello World.
Note: The highlighted characters Slave in hWndSlaveDDE are
only applicable to TeemTalk for Windows 3.1. They are not
to be included when using Windows 95 or NT.
.
.
SetKbdMacro(141, "Hello World", 11);
.
.
SetKbdMacro(
int iKeyMacro,
/* Key to be redefined */
LPSTR szMacroString, /* Pointer to redefinition string */
int iMacroLen
/* Max allowed Length of szMacroString */
)
{
ChangeSetting(
hWnd,
hWndPartner,
IDM_MACROS,
NKEYSTRING,
iKeyIndex,
szMacroString,
iMacroLen
);
}
void
13-16
This time, the call to SendPoke assumes that all used strings are NULL terminated
therefore allowing the iValue parameter to reference an integer setting, as opposed to
the byte count as done previously. This is done to allow keyboard macros to be
wholly defined whilst at the same time limiting the number of functions required to
implement the Slave link.
Once received and actioned, TeemTalk will return to its normal state.
It is worth noting that any settings changed whilst in Slave mode will still apply. It is
therefore important that any parameters changed during the life of the slave link be
reset back to the values that were set prior to entry. This is best done by ensuring that
for every ChangeParameter call, a corresponding GetParameter call is made
beforehand.
13-17
13-18
TOPIC ITEM
DATA
DDE
RESULT
MESSAGE
System
SysItems
NONE
REQUEST
System
Topics
NONE
REQUEST
System
Formats
NONE
REQUEST
System
Status
NONE
REQUEST
System
SendMouse
X, Y coordinates &
button pressed.
POKE
SendMouseStr
X, Y coordinates &
button pressed.
POKE
Session Send
Session Receive
String of data
received from the
host.
Session Escape
Session CurPos
NONE
REQUEST
Session CurPosStr
NONE
REQUEST
Session KeyStr
String containing
virtual key name.
POKE
String of characters, in
CF_TEXT format, that forms
command.
Session KeyPress
String containing
macro definition.
POKE
String of characters, in
CF_TEXT format, that forms
command.
REQUEST
ADVISE
This needs to be integrated with the DDEPOKE structure when allocating the
memory required to transfer this data to TeemTalk. One way of doing this is shown
below.
/* Allocate size of DDE data header, plus the mouse hit data: */
/* terminated by <CR> <LF> <NULL>. The <NULL> is counted */
/* by DDEPOKE.Value[1] */
if (!(hPokeData
= GlobalAlloc(GMEM_MOVEABLE | GMEM_DDESHARE,
13-19
There is no limit checking on the values of X and Y, so the values passed through to
TeemTalk must be within the valid range for the application that is to receive the
mouse hit. Valid values for the button press (ButtonID) are shown below. Any values
out of this range will result in the DDE_POKE failing.
0
1
2
It is important to note that the host application receiving these "mouse hit reports"
must be able to recognize them. The reports will be sent in a format appropriate to
TeemTalk's current mode of operation. For example, when TeemTalk-07W is in
W3220 mode the reports would be in Westward 3220 format, whilst in Tek mode the
reports would be in Tek format.
The SendMouseStr function is an alternative string version of SendMouse. The
information sent with the data message is a string a decimal values in the form x,y,n
where n indicates the mouse button as listed earlier.
Send
Send is a straightforward POKE of data, which must be terminated with a CR LF
NULL sequence, to keep in line with the CF_TEXT data format. Note however that
these three characters will not get dispatched through to the host.
Receive
Receive is a WARM/HOT link function (via the WM_DDE_ADVISE and
subsequent WM_DDE_DATA messages).
All data received by TeemTalk once reception of the WM_DDE_ADVISE message
has been acknowledged will be acted upon as normal, but with one important
addition. The data will also be buffered until the specified termination character(s) is/
13-20
Escape
The Escape function sends the given string which is interpreted by TeemTalk, and
nothing is dispatched to the host. This provides the ability for an application to
directly dispatch (for example) Tektronix 4207 specific escape sequences to
TeemTalk-07W, and have it act upon them appropriately. Note that this is specified to
accept strings of data, which means that NULL characters cannot be dispatched as
they are interpreted to terminate the string. The entire Execute string must be in the
form:
[Escape(String to send)]
An appropriate way for an application to do this is to make use of the Windows SDK
lstrcpy function. For example, to force TeemTalk to display red characters on a white
background, the following would be specified:
lstrcpy(lpszEscString, "[Escape(\e[31;47m)]");
13-21
/
****************************************************************
FUNCTION: ClientReceiveData
PURPOSE: Called when client application receives WM_DDE_DATA message.
****************************************************************/
void
ClientReceiveData(hwndClientDDE, hwndServerDDE, lParam)
HWND hwndClientDDE;
HWND hwndServerDDE;
LONG lParam;
{
DDEDATA FAR * lpDDEData;
LPDDE_CURSINF lpDdeCursInf;
BOOL
bRelease;
BOOL
bAck;
if (!(lpDDEData = (DDEDATA FAR *)GlobalLock(LOWORD(lParam))) ||
(lpDDEData->cfFormat != CF_TEXT))
{
PostMessage(hwndServerDDE,
WM_DDE_ACK, hwndClientDDE,
MAKELONG(0, HIWORD(lParam))); /* Negative ACK */
}
else
{
/* Read Row/Column values in static vars */
lpDdeCursInf = (LPDDE_CURSINF)lpDDEData->Value;
CurrentCursRow = lpDdeCursInf->Row;
CurrentCursCol = lpDdeCursInf->Col;
if (lpDDEData->fAckReq)
{
/* return ACK or NACK */
PostMessage(hwndServerDDE,
WM_DDE_ACK,
hwndClientDDE,
MAKELONG( (bAck? 0x8000:0),
HIWORD(lParam)));
}
bRelease = lpDDEData->fRelease;
GlobalUnlock(LOWORD(lParam));
if (bRelease)
GlobalFree(LOWORD(lParam));
}
return;
}
13-22
KeyStr
KeyStr is a straightforward POKE of data that is treated as a key macro to be
performed.
More than one macro definition can be specified in the same string. The string example below will perform the function of the keys Alt + F4 pressed together followed
by the A key:
"<ALT+F4><A>"
KeyStr must be terminated with a CR LF NULL sequence to keep in line with the
CF_TEXT data format. Note however that these three characters will not get
dispatched through to the host.
KeyPress
Keypress is a straightforward POKE of data that will cause the function of a key to
be performed as if it had been pressed by an operator. The data is a string containing
the virtual key name of the required key. Refer to the Virtual Key Names appendix
for a list of key names that can be used.
This must be terminated with a CR LF NULL sequence to keep in line with the
CF_TEXT data format. Note however that these three characters will not get
dispatched through to the host.
13-23
13-24
DDEDEMO
VERSION 2.00
Begin Form Form1
Caption
=
spider network ag - TeemTalk DDE Demo
ClientHeight
=
6408
ClientLeft
=
1992
ClientTop
=
900
ClientWidth
=
6516
Height
=
6828
Left
=
1944
LinkTopic
=
Form1
ScaleHeight
=
6408
ScaleWidth
=
6516
Top
=
528
Width
=
6612
Begin CommandButton cls
Caption
=
Send DDE Info
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
0
Left
=
2760
TabIndex
=
29
Top
=
2400
Width
=
1575
End
Begin CommandButton ttscr
Caption
=
Run TT script
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
1
Left
=
1080
TabIndex
=
28
Top
=
5280
Width
=
1575
End
Begin CommandButton TTstat
Caption
=
Start
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
13-25
=
=
=
=
=
=
=
=
=
End
Begin TextBox Text1
FontBold
=
FontItalic
=
FontName
=
FontSize
=
FontStrikethru =
FontUnderline
=
Height
=
Index
=
Left
=
TabIndex
=
Top
=
Width
=
End
7.8
0
False
0
False
255
0
120
27
2400
735
-1 True
0
False
Arial
7.2
0
False
0
False
375
18
240
15
4680
6015
13 12
10 9
3960
1080
11 5
8 7
3720
840
4 3
6 5
3480
600
2 1
4 3
3240
360
13-26
0
1
1800
=
=
=
=
=
=
=
=
=
7.8
0
False
0
False
255
4
5280
24
5640
735
End
Begin CommandButton formats
Caption
=
Formats
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
2
Left
=
4440
TabIndex
=
23
Top
=
5640
Width
=
735
End
Begin CommandButton topics
Caption
=
Topics
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
1
Left
=
3600
TabIndex
=
22
Top
=
5640
Width
=
735
End
Begin CommandButton Sysitems
Caption
=
SysItems
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
0
Left
=
2760
TabIndex
=
21
13-27
=
=
5640
735
End
Begin TextBox Text2
Height
=
285
Left
=
1080
TabIndex
=
20
Top
=
6000
Width
=
5295
End
Begin CommandButton cls
Caption
=
Send DDE Info
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
4
Left
=
2760
TabIndex
=
18
Top
=
5280
Width
=
1575
End
Begin CommandButton ttscr
Caption
=
Run TT script
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
0
Left
=
1080
TabIndex
=
17
Top
=
2400
Width
=
1575
End
Begin CommandButton Exit
Caption
=
Exit
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
0
Left
=
5280
TabIndex
=
16
13-28
=
=
5280
1095
End
Begin CommandButton TTstat
Caption
=
Start
FontBold
=
0
False
FontItalic
=
0
False
FontName
=
MS Sans Serif
FontSize
=
7.8
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
255
Index
=
1
Left
=
120
TabIndex
=
0
Top
=
5280
Width
=
735
End
Begin Frame Rahmen1
Caption
=
Session 1
FontBold
=
-1 True
FontItalic
=
0
False
FontName
=
System
FontSize
=
9.6
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
2295
Left
=
120
TabIndex
=
2
Top
=
0
Width
=
6255
End
Begin Frame Rahmen2
Caption
=
Session 2
FontBold
=
-1 True
FontItalic
=
0
False
FontName
=
System
FontSize
=
9.6
FontStrikethru =
0
False
FontUnderline
=
0
False
Height
=
2295
Left
=
120
TabIndex
=
26
Top
=
2880
Width
=
6255
End
Begin Label Bezeichnung1
Caption
=
DDE Info
Height
=
255
Left
=
120
TabIndex
=
19
Top
=
6000
13-29
975
End
End
Sub cls_Click (index As Integer)
text2.LinkMode = 0
If index = 0 Then
text2.LinkTopic = TT07W|ttlk1
Else
text2.LinkTopic = TT07W|ttlk2
End If
text2.LinkItem = Send
text2.LinkMode = 2
text2 = text2 + Chr(13) + Chr(10) + Chr(0)
text2.LinkPoke
text2 = Chr(13)
text2.LinkPoke
text2 =
End Sub
Sub Exit_Click (index As Integer)
End
End Sub
Sub formats_Click (index As Integer)
text2.LinkMode = 0
text2.LinkTopic = TT07W|System
text2.LinkItem = Formats
text2.LinkMode = 2
text2.LinkRequest
End Sub
Sub ftp_Click (index As Integer)
text2.LinkMode = 0
text2.LinkTopic = TTfler|System
text2.LinkItem = SysItems
text2.LinkMode = 2
text2.LinkRequest
End Sub
Sub receive_Click (index As Integer)
If receive(0).Caption = Receive Then
receive(0).Caption = Stop receive
text2.LinkMode = 0
text2.LinkTopic = TT07W|Session
text2.LinkItem = Receive
text2.LinkMode = 1
Else
receive(0).Caption = Receive
text2.LinkMode = 0
End If
13-30
13-31
13-32
Troubleshooting
A
Troubleshooting
This appendix provides answers to the most commonly asked questions.
Problem:
Solution:
This may occur when you have more than one version of TeemTalk
installed on your system and the version you are trying to run is
attempting to use a DLL or file that belongs to another version. If you
continue you may get unpredictable results.
Problem:
Solution:
A-1
Troubleshooting
4. In the Save As File Name text box, specify the name of the workspace
settings file (and the directory path if different from the default) which
is to store the user preference settings selected by the Saved Items
options. The default filename is tt*w.wsp, where * is 05, 07 or 11,
depending on your version of TeemTalk.
Note: Splitting the saved settings into two files enables users to share
a common terminal emulation settings file while allowing each
user to have their own workspace settings file.
5. In the Description text box, enter a unique description (up to 132
characters long) which will be used to identify the connection
template for future selection. This description will also appear in the
Open Session dialog box.
6. Click the OK button to save the connection template. If you specified
the names of settings files that already exist, a message box will ask
you to confirm whether or not you want to overwrite the existing files
with the new settings.
Problem:
Solution:
Check that the terminal emulation mode selected in the Emulation Settings dialog box is set to the correct one for the application. TeemTalk
defaults to the VT100 emulation.
Check that the settings in the Serial Settings dialog box match that of
the host.
A-2
Troubleshooting
Problem:
Solution:
Display the Emulation Settings dialog box and select Tek as the emulation, then display the Dialog Settings dialog box and set the Dialog
Area Enabled option to 0 (zero).
Problem:
Solution:
Select the required text colour indices in the Attributes dialog box then
display the Dialog Settings dialog box and select Dialog Indices
Locked.
Problem:
Solution:
CrosshairSize=1-4096
-x1-4096
Problem:
Solution:
Try changing the setting of the Cursor Origin option in the Dialog
Settings dialog box.
Problem:
Solution:
A-3
Troubleshooting
2. Some overruns are caused by SMARTDRV write caching. To disable write caching but continue read caching, specify the drive letter
without a + or -. For example, SMARTDRV C enables read caching
but disables write caching. Note, however, that this will slow the PC
down.
3. Remove the DOS=HIGH statement from CONFIG.SYS as it causes
interrupts to be delayed longer. Note that this will take up precious
CONVENTIONAL memory space.
4. An ill-behaved TSR may be contributing to the problem. If so, try to
isolate it by removing all TSRs then adding them back one at a time.
5. Run in standard mode. Windows stops virtualizing I/O and there is
less overhead.
6. Remove the SOUNDS.DRV driver (which enables a variety of
sounds from your PC speaker) if it is present, as this disables interrupts while activated.
Other things you could try are listed below.
Check that you are using the Windows versions of EMM386,
2K environment.
If Windows hangs, increase the stacks to 64,512. The recommenda-
tion is 0,0.
Check that your TEMP variable points to a subdirectory that actually
exists and that there are at least 2 megabytes free on the disk.
Check that EMMExclude=A000-EFFF, otherwise Windows will
A-4
B
Virtual Key Names
This appendix lists all the supported virtual key names which enable you
to include a specific key function in a user definition.
Key Function
0-9
A-Z
Alt (same as Menu)
Alt (right)
Apostrophe (' @)*
Back Slash (\ |)*
Backspace
Break
Caps Lock
Comma (, <)
Comma
Compose Character
Control (left)
Control (right)
Copy
Cursor Down
Cursor Left
Cursor Right
Cursor Up
Data Talk
Delete
End
Escape
Euro Sign
Exit teemtalk
F1 - F12
Forward Slash (/ ?)*
Hold Screen
Home
Insert
Keypad 0 - 9
VK_0 - VK_9
VK_A - VK_Z
VK_ALT
VK_RALT
VK_OEM_3
VK_OEM_5
VK_BACK
VK_BREAK
VK_CAPITAL
VK_OEM_COMMA
VK_COMMA
VK_COMPOSE
VK_CONTROL
VK_RCONTROL
VK_COPY
VK_DOWN
VK_LEFT
VK_RIGHT
VK_UP
VK_DATATALK
VK_DELETE
VK_END
VK_ESCAPE
VK_EUROSIGN
VK_EXIT
VK_F1 - VK_F12
VK_OEM_2
VK_HOLDSCREEN
VK_HOME
VK_INSERT
VK_NUMPAD0 - 9
B-1
Key Function
Attn
Clear
Cu Sel
Erase EOF
Ex Sel
F13 - F18
VK_ATTN
VK_OEM_CLEAR
VK_CUSEL
VK_EREOF
VK_EXSEL
VK_F13 - VK_F18
F19 - F24
No Name
PA1
Play
Reset
Zoom
VK_OEM_F19 - F24
VK_NONAME
VK_PA1
VK_PLAY
VK_OEM_RESET
VK_ZOOM
Key Function
Back Tab
Break
Backspace
Compose
Cursor Down
Cursor Left
Cursor Right
Cursor Up
Datatalk
Delete
Do (F16)
Enter
Escape
F6 - F14
F17 - F20
Find
Help (F15)
Hold Screen
VT_CSIZ
VT_BREAK
VT_BACKSPACE
VT_COMPOSE
VT_DOWN
VT_LEFT
VT_RIGHT
VT_UP
VT_DATATALK
VT_DELETE
VT_DO
VT_ENTER
VT_ESCAPE
VT_F6 - VT_F14
VT_F17 - VT_F20
VT_FIND
VT_HELP
VT_HOLD
Insert
Keypad 0 - 9
Keypad Comma
Keypad Decimal
Keypad Minus
Next Page
PF1 - PF4
Previous Page
Print
Remove
Return
Scroll Down
Scroll Left
Scroll Right
Scroll Up
Select
Setup
Tab
VT_INSERT
VT_PAD0 - 9
VT_COMMA
VT_PADDECIMAL
VT_MINUS
VT_NEXT
VT_PF1 - VT_PF4
VT_PREV
VT_PRINT
VT_REMOVE
VT_RETURN
VT_PANDOWN
VT_PANLEFT
VT_PANRIGHT
VT_PANUP
VT_SELECT
VT_SETUP
VT_TAB
Key Function
Break
Cancel
Default View*
Dialog Area Copy*
D. Area Visibility*
Erase Dialog Area
Erase Graphics Area
Fill Patterns
TK_BREAK
TK_CANCEL
TK_DEFVIEW
TK_DCOPY
TK_DVISIB
TK_DERASE
TK_GERASE
TK_PATTERNS
Primary Setup
Print
Restore View*
Screen Copy
View Down*
View Up*
Zoom*
TK_SETUP
TK_PRINT
TK_RSTVIEW
TK_SCOPY
TK_VIEWDOWN
TK_VIEWUP
TK_ZOOM
B-2
C
Key Reference Numbers
This appendix lists the reference numbers assigned to keys on the
British keyboard and mouse buttons which are used by Tek key
programming commands.
The following tables of reference numbers correspond to the keys listed in the left
column. The key legends shown are those found on the British versions of the
keyboard layouts for the different systems compatible with TeemTalk. Note that not all
of the function keys are on all of the keyboards.
The reference numbers for control keys on other national keyboards will be the same
as shown for the British keyboard.
Alphabetic, numeric and symbolic key reference numbers for other national keyboards are the same as those for the keys in the equivalent positions on the British
keyboard.
Comparison can be made as follows. To find alphabetic, numeric and symbolic key
reference numbers for non-British keyboard layouts, refer to the keyboard layouts in
the manual supplied by the manufacturer. Compare the key positions with those on
the British layout in that manual, then find the corresponding reference numbers in
the following tables.
C-1
C-2
KEY
NORM
SHIFT
CTRL
CT/SH
ALT
COMPOSE
DEL
DELETE
DO (F10)
END
ESCAPE
HELP (F11)
HOME
INSERT
NEXT
PAUSE BR
REMOVE
RETURN
SPACE
TAB
-166
-258
127
-231
-259
27
-232
-256
-255
-260
148
-257
13
32
9
-166
-264
-34
-233
-265
-37
-234
-262
-261
-266
155
-263
-49
-52
-46
-166
-270
-35
-235
-271
-38
-236
-268
-267
-272
-22
-269
-50
-53
-47
-166
-276
-36
-237
-277
-39
-238
-274
-273
-278
-29
-275
-51
-54
-48
-166
-348
-373
-360
-349
-370
-361
-346
-345
-350
-365
-347
-374
N/A
-371
Keypad 0
Keypad 1
Keypad 2
Keypad 3
Keypad 4
Keypad 5
Keypad 6
Keypad 7
Keypad 8
Keypad 9
Keypad .
Keypad ,
Keypad Keypad ENTER
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-331
-332
-333
-334
-335
-336
-337
-338
-339
-340
-341
-342
-343
-344
PF1
PF2
PF3
PF4
-239
-240
-241
-242
-243
-244
-245
-246
-247
-248
-249
-250
-251
-252
-253
-254
-327
-328
-329
-330
CURSOR RIGHT
CURSOR UP
CURSOR LEFT
CURSOR DOWN
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-369
-366
-367
-368
NORM
SHIFT
CTRL
CT/SH
ALT
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10 (DO)
F11 (HELP)
F12
F13
F14
128
129
130
131
132
133
134
135
144
-231
-232
145
146
147
136
137
138
139
140
141
142
143
151
-233
-234
152
153
154
-2
-3
-4
-5
-6
-7
-8
-9
-18
-235
-236
-19
-20
-21
-10
-11
-12
-13
-14
-15
-16
-17
-25
-237
-238
-26
-27
-28
-351
-352
-353
-354
-355
-356
-357
-358
-359
-360
-361
-362
-363
-364
0
1
2
3
4
5
6
7
8
9
48
49
50
51
52
53
54
55
56
57
41
33
64
35
36
37
94
38
42
40
N/A
N/A
0
27
28
29
30
31
127
N/A
N/A
N/A
0
27
28
29
30
31
127
N/A
-279
-280
-281
-282
-283
-284
-285
-286
-287
-288
\ |
< >
, <
- _
. >
/ ?
; :
' "
=
[
]
` ~
# ~
92
60
44
45
46
47
59
96
61
91
93
39
23
124
62
60
95
62
63
58
34
43
123
125
126
126
28
60
44
31
46
31
59
96
N/A
27
29
30
23
28
62
60
31
62
31
58
34
N/A
27
29
30
126
-326
-376
-317
-318
-319
-320
-315
-325
-316
-322
-324
-321
-323
C-3
C-4
KEY
NORM
SHIFT
CTRL
CT/SH
ALT
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-289
-290
-291
-292
-293
-294
-295
-296
-297
-298
-299
-300
-301
-302
-303
P
Q
R
S
T
U
V
W
X
Y
Z
112
113
114
115
116
117
118
119
120
121
122
80
81
82
83
84
85
86
87
88
89
90
16
17
18
19
20
21
22
23
24
25
26
16
17
18
19
20
21
22
23
24
25
26
-304
-305
-306
-307
-308
-309
-310
-311
-312
-313
-314
Button Pressed
Button Pressed
Button Released
Button Released
Button
Shift + Button
Button Pressed
Button Pressed
Button Released
Button Released
Ctrl + Button
C-5
Notes
C-6
Character Sets
D
Character Sets
This appendix shows the tables of characters that are supported by
TeemTalk.
Introduction
The following pages show the character sets that are supported when TeemTalk is in
Tek Alpha or VT220 Alpha overall mode (as explained below). The mode in which
each set is valid is indicated in brackets under the heading.
TeemTalk can emulate either a Tek 4100 series terminal or a DEC VT220 terminal.
The software will switch automatically between these two overall modes only when
particular sub-mode switches take place. These are the switches which require the
terminal emulation to change from Tek to DEC VT220. The sub-modes of the two
emulations are as follows:
Tek Sub-Modes:
VT220 Sub-Modes:
VT52
ANSI (VT100)
EDIT
TEK
VT52
VT100
VT220 7-Bit
VT220 8-Bit
Each character set consists of a series of control characters and displayable characters. Displayable characters are alphanumeric, symbolic or graphic characters that
can be displayed on the screen or printed by a hardcopy device. Control characters
enable the terminal emulation or the printer to perform specific tasks, such as a line
feed or carriage return. These will be actioned when received from the host or when
TeemTalk is in local mode and they are entered from the keyboard.
Note: When the Display Controls option in the Emulation Settings
dialog box is selected, a representation of most control
characters received will be displayed on the screen instead of
actioned.
D-1
Character Sets
To enter a control character from the keyboard, first find the displayable character
equivalent by adding 64 to the decimal value of the control character in the relevant
character set table. For example, the control character CR (carriage return) has a
decimal value of 13. Adding 64 makes 77 which is the decimal value of the
displayable character M. When the Ctrl (control) key is held down and Shift + M is
pressed (or M alone if Caps Lock is on), this will generate a CR code in local mode.
Some setup options require you to specify one or more control characters. A control
character can be specified by typing ^ to represent the Ctrl key, immediately
followed by the displayable character equivalent of the control character as described
in the previous paragraph. For example, ^M, represents Ctrl + M, which generates
the control character CR.
Another way of specifying control characters is by entering the decimal value of the
ASCII character. Decimal values are entered as three-digit numbers immediately
preceded by an underscore character. Values with only two digits must be preceded
by a zero. For example, the decimal value of CR is 13, so this would be entered as
_013.
D-2
Character Sets
ASCII (MULTINATIONAL 7-BIT) CHARACTER SET
(Tek & VT220 Alpha Modes)
COLUMN
R 8 7 BITS
65
O
W 4321
2
3
6
7
4
5
0
0
0
0
01
00
00
0
11
11
00 101
11
00 001 010
1
0
0
0 0000 NUL
1 0001 SOH
2 0010 STX
3 0011 ETX
4 0100 EOT
5 0101 ENQ
6 0110 ACK
7 0111 BEL
8 1000 BS
9 1001 HT
10 1010 LF
11 1011 VT
12 1100 FF
13 1101 CR
14 1110 SO
15 1111
KEY:
SI
ESC
0
20
0 DLE 16
0
10
1
21
1 DC1 17
1 XON 11
2
22
2 DC2 18
2
12
3
23
3 DC3 19
3 XOFF 13
4
24
4 DC4 20
4
14
5
25
5 NAK 21
5
15
6
26
6 SYN 22
6
16
7
27
7 ETB 23
7
17
10
30
8 CAN 24
8
18
11
31
9 EM 25
9
19
12
32
10 SUB 26
A
1A
13
33
11 ESC 27
B
1B
14
34
12 FS
28
C
1C
15
35
13 GS 29
D
1D
16
36
14 RS
30
E
1E
17
37
15 US
31
F
1F
33
27
1B
SP
!
"
#
$
%
&
(
)
*
+
,
.
/
40
32
20
41
33
21
42
34
22
43
35
23
44
36
24
45
37
25
46
38
26
47
39
27
50
40
28
51
41
29
52
42
2A
53
43
2B
54
44
2C
55
45
2D
56
46
2E
57
47
2F
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
60
48
30
61
49
31
62
50
32
63
51
33
64
52
34
65
53
35
66
54
36
67
55
37
70
56
38
71
57
39
72
58
3A
73
59
3B
74
60
3C
75
61
3D
76
62
3E
77
63
3F
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
100
64
40
101
65
41
102
66
42
103
67
43
104
68
44
105
69
45
106
70
46
107
71
47
110
72
48
111
73
49
112
74
4A
113
75
4B
114
76
4C
115
77
4D
116
78
4E
117
79
4F
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
120
80
50
121
81
51
122
82
52
123
83
53
124
84
54
125
85
55
126
86
56
127
87
57
130
88
58
131
89
59
132
90
5A
133
91
5B
134
92
5C
135
93
5D
136
94
5E
137
95
5F
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
140
96
60
141
97
61
142
98
62
143
99
63
144
100
64
145
101
65
146
102
66
147
103
67
150
104
68
151
105
69
152
106
6A
153
107
6B
154
108
6C
155
109
6D
156
110
6E
157
111
6F
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
DEL
160
112
70
161
113
71
162
114
72
163
115
73
164
116
74
165
117
75
166
118
76
167
119
77
170
120
78
171
121
79
172
122
7A
173
123
7B
174
124
7C
175
125
7D
176
126
7E
177
127
7F
OCTAL
DECIMAL
HEXADECIMAL
The ASCII (American Standard Code for Information Interchange) character set will
be selected when the Keyboard Language option in the Terminal Settings dialog
box is set to North American, or the Multinational option in the Emulation
Settings dialog box is selected. This table forms the first half of the Multinational
character set, the second half of which is the DEC Additional set.
D-3
Character Sets
DEC ADDITIONAL (MULTINATIONAL 8-BIT) CHARACTER SET
(VT220 Alpha Mode)
10
11
14
15
COLUMN
12
13
BITS R
8
1
1
1
1
76
11
10
1
10
11
11
O
00 101
11
00 001 010
1 4 3 2 15 W
0
8
IND
NEL
SSA
ESA
HTS
HTJ
VTS
PLD
PLU
RI
SS2
SS3
200
128
80
201
129
81
202
130
82
203
131
83
204
132
84
205
133
85
206
134
86
207
135
87
210
136
88
211
137
89
212
138
8A
213
139
8B
214
140
8C
215
141
8D
216
142
8E
217
143
8F
KEY:
DCS
PU1
PU2
STS
CCH
MW
SPA
EPA
CSI
ST
OSC
PM
APC
ESC
220
144
90
221
145
91
222
146
92
223
147
93
224
148
94
225
149
95
226
150
96
227
151
97
230
152
98
231
153
99
232
154
9A
233
155
9B
234
156
9C
235
157
9D
236
158
9E
237
159
9F
33
27
1B
240
160
A0
241
161
A1
242
162
A2
243
163
A3
244
164
A4
245
165
A5
246
166
A6
247
167
A7
250
168
A8
251
169
A9
252
170
AA
253
171
AB
254
172
AC
255
173
AD
256
174
AE
257
175
AF
2
3
/4
/2
260
176
B0
261
177
B1
262
178
B2
263
179
B3
264
180
B4
265
181
B5
266
182
B6
267
183
B7
270
184
B8
271
185
B9
272
186
BA
273
187
BB
274
188
BC
275
189
BD
276
190
BE
277
191
BF
300
192
C0
301
193
C1
302
194
C2
303
195
C3
304
196
C4
305
197
C5
306
198
C6
307
199
C7
310
200
C8
311
201
C9
312
202
CA
313
203
CB
314
204
CC
315
205
CD
316
206
CE
317
207
CF
320
208
D0
321
209
D1
322
210
D2
323
211
D3
324
212
D4
325
213
D5
326
214
D6
327
215
D7
330
216
D8
331
217
D9
332
218
DA
333
219
DB
334
220
DC
335
221
DD
336
222
DE
337
223
DF
340
224
E0
341
225
E1
342
226
E2
343
227
E3
344
228
E4
345
229
E5
346
230
E6
347
231
E7
350
232
E8
351
233
E9
352
234
EA
353
235
EB
354
236
EC
355
237
ED
356
238
EE
357
239
EF
360
240
F0
361
241
F1
362
242
F2
363
243
F3
364
244
F4
365
245
F5
366
246
F6
367
247
F7
370
248
F8
371
249
F9
372
250
FA
373
251
FB
374
252
FC
375
253
FD
376
254
FE
377
255
FF
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9
1010 10
1011 11
1100 12
1101 13
1110 14
1111 15
OCTAL
DECIMAL
HEXADECIMAL
This is the second half of the Multinational character set when TeemTalk is in VT220
Alpha overall mode (the first half is the ASCII character set). These characters may
be generated when TeemTalk is in VT220 7 or 8 bit mode and the Multinational
option in the Emulation Settings dialog box is selected.
D-4
Character Sets
NATIONAL REPLACEMENT CHARACTERS
(VT220 Alpha Mode)
BINARY BIT 8
7
6
5
4
3
2
1
OCTAL
DECIMAL
HEXADECIMAL
0
0
1
0
0
0
1
1
43
35
23
0
1
0
0
0
0
0
0
100
64
40
0
1
0
1
1
0
1
1
133
91
5B
0
1
0
1
1
1
0
0
134
92
5C
0
1
0
1
1
1
0
1
135
93
5D
0
1
0
1
1
1
1
0
136
94
5E
0
1
0
1
1
1
1
1
137
95
5F
0
1
1
0
0
0
0
0
140
96
60
0
1
1
1
1
0
1
1
173
123
7B
0
1
1
1
1
1
0
0
174
124
7C
0
1
1
1
1
1
0
1
175
125
7D
0
1
1
1
1
1
1
0
176
126
7E
ASCII
British
Canadian
Danish
Norwegian
Dutch
/4
ij
/2
fl
/4
Finnish
French
Belgian
German
Italian
Portuguese
Spanish
Swedish
Swiss French
Swiss German
This table shows the characters that replace certain ASCII characters in VT220
Alpha overall mode when the Multinational option in the Emulation Settings dialog
box is not selected. The national character set consists of the ASCII set with the
changed characters listed on the line for the selected keyboard nationality.
D-5
Character Sets
NATIONAL REPLACEMENT CHARACTERS
(Tek Alpha Mode)
BINARY BIT 8
7
6
5
4
3
2
1
OCTAL
DECIMAL
HEXADECIMAL
0
0
1
0
0
0
1
1
43
35
23
0
1
0
0
0
0
0
0
100
64
40
0
1
0
1
1
0
1
1
133
91
5B
0
1
0
1
1
1
0
0
134
92
5C
0
1
0
1
1
1
0
1
135
93
5D
0
1
1
0
0
0
0
0
140
96
60
0
1
1
1
1
0
1
1
173
123
7B
0
1
1
1
1
1
0
0
174
124
7C
0
1
1
1
1
1
0
1
175
125
7D
0
1
1
1
1
1
1
0
176
126
7E
ASCII
British
Danish
Norwegian
French
German
Swedish
This table shows the characters that replace certain ASCII characters in Tek overall
mode for the keyboard nationality chosen in the Terminal Settings dialog box. The
national character set consists of the ASCII set with the changed characters listed on
the line for the selected keyboard nationality.
D-6
Character Sets
LINE DRAWING CHARACTER SET
(Tek & VT220 Alpha Modes)
0
COLUMN
R 8 7 BITS
65
O
W 4321
00
00
0 0000 NUL
1 0001 SOH
2 0010 STX
3 0011 ETX
4 0100 EOT
5 0101 ENQ
6 0110
ACK
7 0111 BEL
8 1000 BS
9 1001 HT
10 1010 LF
11 1011 VT
12 1100 FF
13 1101 CR
14 1110 SO
15 1111
KEY:
SI
ESC
1
00
01
0
20
0 DLE 16
0
10
1
21
1 DC1 17
1 XON 11
2
22
2 DC2 18
2
12
3
23
3 DC3 19
3 XOFF 13
4
24
4 DC4 20
4
14
5
25
5 NAK 21
5
15
6
26
6 SYN 22
6
16
7
27
7 ETB 23
7
17
10
30
8 CAN 24
8
18
11
31
9 EM 25
9
19
12
32
10 SUB 26
A
1A
13
33
11 ESC 27
B
1B
14
34
12 FS
28
C
1C
15
35
13 GS 29
D
1D
16
36
14 RS
30
E
1E
17
37
15 US
31
F
1F
33
27
1B
00
SP
!
"
#
$
%
&
(
)
*
+
,
.
/
10
40
32
20
41
33
21
42
34
22
43
35
23
44
36
24
45
37
25
46
38
26
47
39
27
50
40
28
51
41
29
52
42
2A
53
43
2B
54
44
2C
55
45
2D
56
46
2E
57
47
2F
00
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
11
60
48
30
61
49
31
62
50
32
63
51
33
64
52
34
65
53
35
66
54
36
67
55
37
70
56
38
71
57
39
72
58
3A
73
59
3B
74
60
3C
75
61
3D
76
62
3E
77
63
3F
01
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
00
100
64
40
101
65
41
102
66
42
103
67
43
104
68
44
105
69
45
106
70
46
107
71
47
110
72
48
111
73
49
112
74
4A
113
75
4B
114
76
4C
115
77
4D
116
78
4E
117
79
4F
01
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
01
01
120
80
50
121
81
51
122
82
52
123
83
53
124
84
54
125
85
55
126
86
56
127
87
57
130
88
58
131
89
59
132
90
5A
133
91
5B
134
92
5C
135
93
5D
136
94
5E
137
95
5F
H
F
C
L
N
V
10
140
96
60
141
97
61
142
98
62
143
99
63
144
100
64
145
101
65
146
102
66
147
103
67
150
104
68
151
105
69
152
106
6A
153
107
6B
154
108
6C
155
109
6D
156
110
6E
157
111
6F
01
11
DEL
160
112
70
161
113
71
162
114
72
163
115
73
164
116
74
165
117
75
166
118
76
167
119
77
170
120
78
171
121
79
172
122
7A
173
123
7B
174
124
7C
175
125
7D
176
126
7E
177
127
7F
OCTAL
DECIMAL
HEXADECIMAL
D-7
Character Sets
ADDITIONAL CHARACTER SET
(Tek Alpha Mode)
COLUMN
R 8 7 BITS
65
O
W 4321
2
3
6
7
4
5
0
0
0
0
01
00
00
0
11
11
00 101
11
00 001 010
1
0
0
0 0000 NUL
1 0001 SOH
2 0010 STX
3 0011
ETX
4 0100 EOT
5 0101 ENQ
6 0110 ACK
7 0111 BEL
8 1000 BS
9 1001 HT
10 1010 LF
11 1011 VT
12 1100 FF
13 1101 CR
14 1110 SO
15 1111
KEY:
SI
ESC
0
20
0 DLE 16
0
10
1
21
1 DC1 17
1 XON 11
2
22
2 DC2 18
2
12
3
23
3 DC3 19
3 XOFF 13
4
24
4 DC4 20
4
14
5
25
5 NAK 21
5
15
6
26
6 SYN 22
6
16
7
27
7 ETB 23
7
17
10
30
8 CAN 24
8
18
11
31
9 EM 25
9
19
12
32
10 SUB 26
A
1A
13
33
11 ESC 27
B
1B
14
34
12 FS
28
C
1C
15
35
13 GS 29
D
1D
16
36
14 RS
30
E
1E
17
37
15 US
31
F
1F
33
27
1B
SP
40
32
20
41
33
21
42
34
22
43
35
23
44
36
24
45
37
25
46
38
26
47
39
27
50
40
28
51
41
29
52
42
2A
53
43
2B
54
44
2C
55
45
2D
56
46
2E
57
47
2F
0
1
2
3
4
5
6
7
8
9
60
48
30
61
49
31
62
50
32
63
51
33
64
52
34
65
53
35
66
54
36
67
55
37
70
56
38
71
57
39
72
58
3A
73
59
3B
74
60
3C
75
61
3D
76
62
3E
77
63
3F
oo
100
64
40
101
65
41
102
66
42
103
67
43
104
68
44
105
69
45
106
70
46
107
71
47
110
72
48
111
73
49
112
74
4A
113
75
4B
114
76
4C
115
77
4D
116
78
4E
117
79
4F
oc
120
80
50
121
81
51
122
82
52
123
83
53
124
84
54
125
85
55
126
86
56
127
87
57
130
88
58
131
89
59
132
90
5A
133
91
5B
134
92
5C
135
93
5D
136
94
5E
137
95
5F
H
F
C
L
N
V
140
96
60
141
97
61
142
98
62
143
99
63
144
100
64
145
101
65
146
102
66
147
103
67
150
104
68
151
105
69
152
106
6A
153
107
6B
154
108
6C
155
109
6D
156
110
6E
157
111
6F
DEL
OCTAL
DECIMAL
HEXADECIMAL
D-8
160
112
70
161
113
71
162
114
72
163
115
73
164
116
74
165
117
75
166
118
76
167
119
77
170
120
78
171
121
79
172
122
7A
173
123
7B
174
124
7C
175
125
7D
176
126
7E
177
127
7F
E
Host Command Summary
This appendix lists the host and Tek Primary Setup commands that are
valid in each terminal emulation mode. TeemTalk-specific commands
are listed at the back.
The following conventions are used in this command list:
Spaces in a command are for clarity only and are not to be entered as part of the
command. A space character that is part of the command will be shown as SP.
An asterisk (*) in a command indicates the location of one or more parameters
except otherwise indicated next to the command.
VT52 Mode
CHARACTER SET SELECTION
HOST
SI
SO
ESC G
ESC F
CURSOR
HOST
PRIMARY SETUP
PRIMARY SETUP
E-1
E-2
TEXT ERASURE
HOST
ESC K
ESC J
GENERAL
HOST
CAN
BEL
MODE SELECTION
HOST
PRIMARY SETUP
ESC % ! *
CODE *
ESC =
ESC >
ESC <
PRINTING
HOST
ESC _
ESC ^
ESC X
ESC W
REPORTS
HOST
ESC Z
ESC # ! 0
PRIMARY SETUP
PRIMARY SETUP
PRIMARY SETUP
PRIMARY SETUP
0
1
4
5
7
22
24
25
27
30
31
32
33
34
35
36
37
39
ESC [ * m
White background 40
Red background
41
Red background
42
Yellow background 43
Blue background
44
Magenta background 45
Cyan background
46
White background 47
White background 49
White background 50
Red background
51
Red background
52
Yellow background 53
Blue background
54
Magenta background 55
Cyan background
56
White background 57
White background 59
ESC [ < 1 h
ESC # 3
ESC # 4
ESC # 6
ESC [ < 1 l
ESC # 5
HOST
ESC ( *
ESC ) *
ASCII / N.American
British
Dutch
Finnish
French
French Canadian
German
B
A
4
5 or C
R
9 or Q
K
DAMODE *
DAMODE *
PRIMARY SETUP
Italian
Danish / Norwegian
Portuguese
Spanish
Swedish
Swiss
Line Drawing
Y
' or E or 6
%6
Z
7 or H
=
0
SI
SO
CURSOR
HOST
ESC [ * g
ESC [ 20 l
ESC [ ? 50 l
ESC [ ? 7 l
PRIMARY SETUP
E-3
E-4
Enable cursor
Enable cursor autowrap
Index cursor (move down one line)
Insert FF character & advance cursor
Line feed
Move cursor down * lines
Move cursor down one line
Move cursor left * columns
Move cursor one column left
Move cursor right * columns
Move cursor to beginning of next line
Move cursor to left margin of current line
Move cursor to line (*l) column (*c)
Move cursor to line (*l) column (*c)
Move cursor to next tab stop
Move cursor up * lines
Reverse index cursor (move up one line)
Select absolute origin mode
Select auto carriage return
Select relative origin mode
Set tab stop at current cursor position
Tab cursor backward * tabs
Tab cursor forward * tabs
ESC [ ? 50 h
ESC [ ? 7 h
ESC D
FF
LF
ESC [ * B
VT
ESC [ * D
BS
ESC [ * C
ESC E
CR
ESC [ *l ; *c H
ESC [ *l ; *c f
HT
ESC [ * A
ESC M
ESC [ ? 6 l
ESC [ 20 h
ESC [ ? 6 h
ESC H
ESC [ * Z
ESC [ * I
DISPLAY
HOST
ESC [ * T
ESC [ * S
ESC [ ? 3 l
ESC [ ? 3 h
ESC [ ? 75 l
ESC [ ? 5 l
ESC [ ? 5 h
ESC [ ? 75 h
ESC [ *l ; *r r
LFCR *
TABS *
PRIMARY SETUP
EDITING
HOST
ESC [ * P
ESC [ * M
ESC [ * X
ESC [ * K
ESC [ * J
ESC [ * L
ESC [ * @
ESC [ 4 h
ESC [ 4 l
GENERAL OPERATION
HOST
PRIMARY SETUP
CAN
ESC [ 12 l
ESC [ 12 h
ESC [ * l
ECHO YES
ECHO NO
PRIMARY SETUP
ESC c
ESC 8
ESC 7
ESC % ! *
ESC [ ? 2 l
CODE VT52
ESC [ 61 " p
ESC [ 62 ; 1 " p
ESC [ 62 " p
ESC [ 62 ; * " p
ESC [ * h
ESC [ ! p
BEL
KEYBOARD
HOST
ESC [ ? 8 l
ESC `
ESC [ 2 h
ESC [ ? 8 h
ESC b
ESC [ 2 l
ESC [ ? 1 h
ESC [ ? 1 l
ESC =
ESC >
PRINTING
HOST
ESC [ ? 4 i
ESC [ ? 5 i
ESC [ 5 i
ESC [ 4 i
ESC [ ? 1 i
ESC [ i
REPORTS
HOST
ESC [ > c
ESC [ 6 n
ESC [ ? 26 n
ESC [ 5 n
ESC # ! 0
ESC [ 0 c
ESC [ c
ESC Z
CODE *
PRIMARY SETUP
PRIMARY SETUP
PRIMARY SETUP
E-5
CHARACTER ATTRIBUTES
HOST
Non-erase attribute on
Non-erase attribute off (* = 0 or 2)
ESC [ 1 " q
ESC [ * " q
HOST
ESC * *
E-6
PRIMARY SETUP
PRIMARY SETUP
ESC + *
<
3
ESC ~
ESC n
ESC N
ESC }
ESC o
ESC O
ESC |
ESC P 1 ; 1 ; 2 { SP @ ESC \
ESC P * { * ESC \
ESC [ ? 42 l
ESC [ ? 42 h
EDITING
HOST
ESC [ ? * K
ESC [ ? * J
GENERAL OPERATION
HOST
ESC SP F
ESC SP G
PF KEYS
HOST
ESC P 0 ; 1 | ESC \
ESC P 1 ; 0 | ESC \
ESC P * ; * | * / * ESC \
PRIMARY SETUP
PRIMARY SETUP
PRIMARY SETUP
Tek Mode
Applies to TeemTalk-11W and TeemTalk-11W32 only.
Applies to TeemTalk-05W & -05W32, TeemTalk-07W & TeemTalk-07W32.
COLOUR
HOST
PRIMARY SETUP
ESC P I *
ESC T F *
ESC T G *
ESC R B *
ESC T B *
ESC M B *
ESC T M *
ESC L S *
ESC L J *
ESC M T *
ESC M L *
ESC U G *
ESC R G *
ESC R R *
ESC T D *
ESC L I *
ESC Q I *
ESC R P *
PMAP *
DACMAP *
CMAP *
GREYBACK *
CBACKGROUND *
BACKINDEX *
CMODE *
DASURFACE *
DA2INDEX *
GTINDEX *
LINEINDEX *
CSMOOTH *
GREYCMAP *
PXRECTANGLE *
ACURSOR *
DAINDEX *
HCMAP *
PXRASTERWRITE *
DIALOG AREA
HOST
PRIMARY SETUP
ESC K K *
ESC K A *
ESC L V *
ESC L Z
ESC Q L *
ESC L C *
ESC L X *
ESC L L *
ESC L B *
DELDAREA *
DAENABLE *
DAVISIBILITY *
CLEARDIALOG
HCDAATTRIBUTES *
DACHARS *
DAPOSITION *
DALINES *
DABUFFER *
GENERAL
HOST
PRIMARY SETUP
ESC K G *
BS
CAN
ESC K C
CR
DIM *
ESC P C *
ESC J E
ESC A X
CANCEL
STATUS
HELP
DECODE *
ENCODE *
PCOPY *
STOPSPOOL
E-7
E-8
US
FS
GS
ESC A E
FF
LF
ESC K L *
ESC R J *
ESC A R *
ESC K V
ESC A S *
ESC J V *
ESC K U
ESC K Z *
ESC A U *
ESC K B *
BEL
ESC J L *
ESC J S *
HT
VT
ESC A W *
GIN
HOST
PRIMARY SETUP
ESC I W *
ESC I V *
ESC I D *
ESC SUB
ESC ! *
ESC I E *
ESC I G *
ESC I I *
ESC I R *
ESC K J *
ESC I K *
ESC I J *
ESC I X *
ESC I A *
GINWINDOW *
GINAREA *
GINDISABLE *
ESC K F *
ESC K R *
ESC K S *
ESC K T *
ESC K P *
ESC % ! *
LOCKVIEWINGKEYS *
RESET
SAVE *
NVSAVE
TEKMODE *
LFCR *
CRLF *
SYNISESC *
BELLTYPE *
SNOOPY *
ERRORLEVEL *
FACTORY
LOCAL *
PAGEFULL *
CODE *
EDITCHARS *
TABS *
LOAD *
SPOOL *
GINENABLE *
GINGRIDDING *
GININKING *
GINRUBBERBAND *
MOUSEMAP *
GINREPORT *
GSPEED *
GINSTARTPOINT *
GINPICKAPERTURE *
ESC I C *
ESC I N *
ESC I F *
ESC I U *
ESC I Z *
ESC I H *
ESC I B *
GINCURSOR *
TBSIZE *
GINFILTERING *
GINRATES *
GINTABCHARS *
GINSHEADERCHARS *
HOST
PRIMARY SETUP
ESC SI
ESC SO
ESC L M *
ESC ;
ESC :
ESC 8
ESC 9
GRAPHICS PRIMITIVES
HOST
PRIMARY SETUP
ESC L F *
ESC M X *
ESC U C *
ESC L H *
ESC L G *
ESC L E
ESC U R *
ESC M E
ESC M M *
ESC M P *
ESC M S *
ESC R T *
ESC U B *
ESC *
ESC M V *
ESC M D *
ESC L P *
MOVE *
LSDEFINE *
CURVE *
MARKER *
DRAW *
ENDPANEL
RECTANGLE *
ENDFILLP
MARKTYPE *
FILLPATTERN *
PFILLMODE *
PXFACTORS *
BOUNDMODE *
GRAPHICS SURFACES
HOST
PRIMARY SETUP
ESC FF
ESC R A *
ESC R I *
ESC R D *
ESC R N *
VATTRIBUTES *
SVISIBILITY *
SDEFINITIONS *
SPRIORITIES *
GRAPHICS TEXT
HOST
PRIMARY SETUP
ESC S T *
ESC S G *
ESC S Z *
ESC L T *
ESC S U
ESC M G *
GTBEGIN *
GTGRID *
GTDELETE *
GTEXT *
GTEND
GAMODE *
DAMODE *
LINESTYLE *
BEGINFILLP *
BEGINPANEL *
E-9
ESC M F *
ESC M Q *
ESC M A *
ESC M C *
ESC M R *
ESC M N *
GTFONT *
GTPRECISION *
GTSLANT *
GTSIZE *
GTROTATION *
GTPATH *
HOST COMMUNICATIONS
HOST
PRIMARY SETUP
ESC J C *
ESC K I *
ESC CAN
ESC N C *
ESC N P *
ESC K E *
ESC N M *
ESC N Q *
ESC N L *
ESC N R *
ESC N B *
ESC N K *
ESC N E *
ESC N D *
ESC I M *
ESC N F *
ESC N S *
ESC N T *
COPY HO: TO *
IGNOREDEL *
EOMCHARS *
PARITY *
ECHO *
PROMPTMODE *
QUEUESIZE *
XMTLIMIT *
BAUDRATE *
STOPBITS *
BREAKTIME *
EOFSTRING *
XMTDELAY *
REOM *
FLAGGING *
PROMPTSTRING *
EOLSTRING *
P0/P1 PORT
HOST
PRIMARY SETUP
ESC P A *
ESC Q X *
ESC Q F *
ESC P J *
ESC P N *
ESC P R *
ESC P B *
ESC P E *
ESC P F *
ESC P O *
ESC P P *
ESC Q D *
ESC Q A *
ESC P L *
PASSIGN *
HCFEATURES *
HCFORMWIDTH *
PINVERSION *
PCOPIES *
PBAUD *
PBITS *
PEOF *
PFLAG *
PORIENT *
PPARITY *
HCINTERFACE *
HCSIZE *
PLOT TO *
PARALLEL PORT
HOST
PRIMARY SETUP
ESC ETB
ESC K H *
ESC Q E *
ESC Q R *
ESC Q M *
ESC Q F *
HCMONOCHROME *
HCRESERVE *
HCDITHER *
HCFORMWIDTH *
E-10
ESC Q N *
ESC K P *
ESC A U *
ESC Q O *
ESC Q B *
ESC Q U *
ESC Q T *
ESC Q D *
ESC Q A *
HCORIENT *
HCDATARES *
HCDENSITY *
HCREPAINT *
HCINTERFACE *
HCSIZE *
PIXEL COMMANDS
HOST
PRIMARY SETUP
ESC R U *
ESC R X *
ESC A P *
ESC U K *
ESC U J *
ESC R H *
ESC R S *
ESC R L *
ESC A O *
PXBEGIN *
PXCOPY *
PROGRAMMED STRINGS
HOST
HCCOPIES *
PAGEFULL *
PIXRESTORE *
PIXSAVE *
PXPOSITION *
PXVIEWPORT *
PXRUNLENGTHWRITE *
PRIMARY SETUP
ESC K W *
ESC K Y *
ESC K X *
LEARN
NVLEARN
DEFINE *
NVDEFINE *
MACROSTATUS *
KEYEXPAND *
KEYEXCHAR *
EXPAND *
REPORTS
HOST
PRIMARY SETUP
ESC I S *
ESC I T *
ESC N U *
ESC ENQ
ESC Q Q
ESC J Q *
ESC K Q
ESC I P *
ESC P Q *
ESC S Q *
ESC # ! 0
ESC I Q *
ESC I L *
RSIGCHARS *
TBSTATUS *
BYPASSCANCEL *
ESC K D *
ESC K O *
ESC U X *
HCREPORT
SETTINGS *
RLINELENGTH *
TERMINAL *
COORDINATEMODE *
E-11
HOST
PRIMARY SETUP
ESC U I *
ESC M I *
ESC S A *
ESC S F *
ESC L K *
ESC U E *
ESC S K *
ESC U D *
ESC S V *
ESC S C
ESC S N
ESC S B
ESC S E *
ESC S R *
ESC S D *
ESC S J *
ESC S M *
ESC U H *
ESC S H *
ESC S S *
ESC S L *
ESC S P *
ESC S I *
ESC S X *
ESC S O *
SGINSERT *
SGPICKID *
SGCLASS *
SGCALL *
SGINCLUDE *
SGREPLACE *
SGDELETE *
SGREMOVE *
SGVISIBILITY *
SGCLOSE
SGUP
SGDOWN
SGNEW *
SGRENAME *
SGDETECT *
SGSCALE *
SGMODE *
SGEDIT *
SGHIGHLIGHT *
SGPRIORITY *
SGMATCHINGCLASS *
SGPIVOT *
SGTRANSFORM *
SGPOSITION *
SGOPEN *
HOST
PRIMARY SETUP
ESC R K *
ESC K N *
ESC R C *
ESC U W *
ESC R F *
ESC R E *
ESC R W *
ESC R V *
ESC R Q *
VDELETE *
RENEW *
VSELECT *
OWINDOW *
FIXUP *
BORDER *
WINDOW *
VIEWPORT *
VCLUSTER *
E-12
W3220 Mode
GENERAL OPERATION
HOST
ESC N
ESC M
ESC CAN
ESC X
ESC L
GIN MODE
HOST
ESC | R D * ESC | R E
ESC | R A
ESC ENQ
ESC | R @
ESC | R F
GRAPHICS TEXT
HOST
LF
BS
HT
VT
ESC 8
ESC 9
ESC =
ESC :
ESC ;
ESC <
ESC >
ESC | O *
ESC | E *
MODE SELECTION
HOST
CR
ESC FF
CR
ESC FF
US
CR
ESC FF
US
ESC 2
ESC EOT
ESC SUB
ESC FF
ESC 1
FS
PRIMARY SETUP
PRIMARY SETUP
PRIMARY SETUP
PRIMARY SETUP
E-13
ESC % ! *
CODE *
HOST
PRIMARY SETUP
ESC | M *
HOST
ESC ] F *
ESC ] M *
ESC ] L *
ESC ] N *
ESC ] W *
ESC ] D *
ESC ] C *
ESC ] P *
ESC ] O *
VECTOR MODE
HOST
ESC | F *
ESC | P *
ESC | L *
ESC ACK
ESC ETX
ESC SOH
ESC DLE
ESC NAK
ESC | A Q
ESC STX
ESC | P *
ESC | K *
GS
ESC *
E-14
PRIMARY SETUP
PRIMARY SETUP
ESC [ = *arg g
00110
when set enables motion events
when set enables button release events
when set enables button press events
If all bits are cleared then any outstanding arming request is cancelled. The mouse remains
armed until cancelled. When any of the selected events occur, the following report format is
sent to the host:
ESC [ = <Event Type> ; <Button Status> ; <Column> ; <Row> r
Where: <Event Type> is the event(s) that caused the report in the same
format as the arming sequence.
<Button Status> is of the format: 00110LMR
where LMR indicates which button caused the event.
<Column> and <Row> are the alphanumeric position of the mouse.
MOUSE CURSOR
Mouse cursor style (see table in Initialization Commands)
ESC [ = 2 ; * p
DISPLAY
Number of screen lines (window resizes accordingly)
ESC [ = 1 ; * p
SCRIPT FILE
Initiate script file (filename can include options)
ESC P *f z *n ; *d ESC \
REPORTS
Report application name & version (in DEC VT modes)
Example report format: tt07w - 3.2.1
ESC [ 0 ; 1234 c
E-15
Notes
E-16
Index
Index
Symbols
80/132 Column Display
7-36
A
Answerback String
7-34
8-2
AT Keyboard Mapping
DEC VT220 mode 3-2
Tek, VT100 & Edit mode
Auto Wrap
3-3
Colour Selection
Text attributes
7-35
B
Baud Rate Selection
7-27
Block Mode
Cursor positioning
4-4
Button Tools
Adding buttons 5-5
Assigning functions 5-6
Floating button palette 5-1
Predefined functions 5-2
Redefining 5-5
Removing buttons 5-8
C
Cancel Button
Capturing Files
Carrier Detect
2-17
7-13
7-28
Colour Attributes
7-26
7-40
7-40
Index-1
Index
Disable mouse editing 11-25
Disable remote printing 11-28
Disable scroll bar 11-20
Disable status bar 11-21
Disable system menu 11-18
Disable title bar 11-19
Disable toolbar 11-20
Disable window frame 11-19
Flashing for all sessions 11-22
Format 11-5
FTP include subdirectories 10-14
FTP progress bar 10-14
FTP time out 10-14
Hide script parameters 11-15
LK450 keyboard 11-25
Mouse cursor style 11-25
Network host name 11-8
Network input queue size 11-10
Network protocol 11-8
New session warning message 11-11
Number of segments 11-24
Preload Winsock DLL for PPP
usage 11-9
Print data to file 11-28
Private profile file to use 11-14
Return script values in
uppercase 11-15
Run script file 11-15
Segment memory size 11-24
Soft buttons displayed 11-21
Summary 11-6
Support multiple surfaces 11-23
Text redraw delay 11-23
TSR identifier 11-10
Use Windows default printer 11-27
Window fills screen 11-17
Window maximized 11-17
Window minimized 11-17
Window subtitle 11-21
Window title 11-20
ZMODEM startup 11-15
Composing Characters
Connection Template
Creating 2-6, 7-5
Selecting 2-7, 7-7
Index-2
3-16
D-2
4-4
3-9
D
DDE Support
7-21, 13-1
7-4, 7-8
2-18
2-17
7-35
Display
Control codes 7-26
Euro sign 3-15, 7-49
Hotspots 6-1
Resize effect on font 7-36
Index
Scroll bar on maximized 7-32
Text attributes 7-40
Window size in rows 7-36
DVisib Button
2-17
13-1
7-27
Fonts
Effect of window resize
Edit Mode
Selecting
Editing Text
7-21
Emulation Settings
7-25
Emulation Workspace
2-21
3-15, 7-49
F
Factory Default Setup
File Capture/Replay
File Menu
7-4
7-13
7-8
File Transfer
FTP 10-1
ICL FTF 9-1
File Transfer Utility
ASCII parameters 8-12
General parameters 8-8
Kermit parameters 8-10
Kermit remote operations 8-17
Local operation 8-19
Protocol parameters 8-8
Receiving files 8-5
Sending files 8-3
ZModem parameters 8-14
Fill Patterns
2-18
7-36
9-1
G
GErase Button
2-17
Getting Started
Host communications 2-3
Keyboard operation 3-1
Loading TeemTalk 2-1
Mouse functions 4-1
Quitting TeemTalk 2-1
Setup configuration 2-11
Terminal emulation selection 2-9
Toolbar functions 5-1
Using window elements 2-12
Gin Cursor
2-23
2-17
H
Help Menu
7-58
Index-3
Index
Tek mode E-7
VT220 mode E-6
VT52 mode E-1
W3220 mode E-13
Host Communications
Bypass cancel character 7-33
End of message characters 7-34
End of message frequency 7-34
Getting started 2-3
NCSI settings menu 7-29
Report max. line length 7-33
RS232 overrun errors A-3
Serial settings menu 7-27
Host Connection
LED indicators
2-19
Hotspots
Defining 6-2
Displaying all 6-1
Using 6-1
I
IBM 3270 Mode
Telnet options 7-19
ICL FTF File Transfer
9-1
Index-4
Index
Telnet EOR options 11-12
Text redraw delay 11-23
TSR identifier 11-10
Use Windows default printer 11-27
Window fills screen 11-17
Window maximized 11-17
Window minimized 11-17
Window subtitle 11-21
Window title 11-20
ZMODEM startup 11-15
Insert Mode Indicator
2-19
Operation 3-1
PowerStation mapping 3-1
Using LK450 11-25
Virtual key names B-1
Keywords 4-4
L
LK250/450 Keyboard Mapping
DEC VT220 mode 3-6
Tek, VT100 & Edit mode 3-7
Loading TeemTalk
2-1
Local Echo
Kermit 8-1
2-19
Key Mapping
Changing 3-10, 7-44
Displaying 3-10, 7-44
7-28
Key Programming
Macros menu 3-10, 7-44
Macros
Keyboard
AT mapping
DEC VT220 mode 3-2
Tek, VT100 & Edit mode 3-3
Changing key functions 3-10
Composing characters 3-16
Cursor key mode 7-32
Cursor keys 3-9
Defining keys 3-10, 7-44
Enhanced AT mapping
DEC VT220 mode 3-4
Tek, VT100 & Edit mode 3-5
Entering control characters D-2
Euro sign 3-15, 7-49
Key reference numbers C-2
Keypad mode 7-32
LK250 mapping 3-1
LK250/450 mapping
DEC VT220 mode 3-6
Tek, VT100 & Edit mode 3-7
LK450 mapping 3-1
Macros 3-10, 7-44
Mapping (changing) 3-10, 7-44
Mapping (showing) 3-10, 7-44
Nationality 3-9, 7-31
7-28
M
3-10, 7-44
2-13
Mouse
Button actions 7-54
Button ref. numbers C-5
Button tools 7-56
Map to cursor keys/joystick 7-39
Mouse Functions
Action hotspots 4-4
Default 4-1
Move cursor 4-4
Select rectangle 4-3
Selecting text for copy
Send keyword 4-4
Show hotspots 4-4
4-3
N
Network
NetBIOS version
11-9
Index-5
Index
New Connection dialog box
Telnet options 7-19
TSR identifier 11-10
7-9
R
RDPXY
RDT
12-57
RDTXY
12-57
Reference Numbers
Keyboard keys C-2
Mouse buttons C-5
12-57
7-28
Replay File
7-14
Report
Maximum line length
Reset Terminal
7-9
2-18
Pause/Resume Button
2-19
Resume/Pause Button
Primary Setup
Description 2-11
RstView Button
Save Session
Q
Quitting TeemTalk 2-1
Index-6
2-18
7-5, 7-12
2-19
2-20
2-19
Print
Auto 7-17
Buffer 7-17
Cancel 7-17
Euro sign 3-15, 7-49
Screen 7-15
Print Button
7-33
12-73
Script Commands
BREAK 12-23
BRF 12-23
BRT 12-23
CAPTURE 12-23
CLB 12-23
CLIPBD APPEND 12-23
CLIPBD EMPTY 12-24
CLIPBD READ 12-24
CLIPBD WRITE 12-24
CLR 12-24
CLS 12-24
CONV 12-24
DDE CANCEL 12-25
DDE EXECUTE 12-25
DDE INITIATE 12-25
DDE POKE 12-26
DDE REQUEST 12-27
DEC 12-27
DECRYPT 12-27
DIALOGUE 12-28
2-6
Index
DIRFIRST 12-28
DIRNEXT 12-29
DSP 12-30
ELSE 12-30
ENCRYPT 12-31
ERRORCODE 12-31
ERRORLINE 12-31
EXIT 12-31
FACT 12-31
FILE CLOSE 12-32
FILE COPY 12-32
FILE DELETE 12-32
FILE OPEN 12-32
FILE READ 12-33
FILE RENAME 12-33
FILE RGET 12-34
FILE SEEK 12-34
FILE STAT 12-34
FILE WPUT 12-35
FILE WRITE 12-35
FSTR 12-36
FTP CD 12-36
FTP CONNECT 12-37
FTP COPYDLG 12-37
FTP DIRFIRST 12-38
FTP DIRNEXT 12-39
FTP DISCONNECT 12-39
FTP GET 12-40
FTP PUT 12-40
FTP RM 12-41
FTP SET 12-41
FTP TOOL 12-41
FTP WD 12-41
FTU CANCEL 12-41
FTU GET 12-41
FTU INITIATE 12-42
FTU SET 12-42
FTU START 12-44
GETINI 12-44
GOSUB 12-45
GOTO 12-45
HCMP 12-45
HGET 12-46
HRCV 12-46
IF 12-47
INC 12-47
INP 12-47
KACT 12-48
KBD 12-48
KGET 12-48
KINTERCEPT 12-49
KPRESS 12-49
KRAW 12-49
KRCV 12-49
KSTR 12-50
LAUNCH 12-50
LEN 12-50
LET 12-50
LOW 12-51
LSTR 12-51
MSGBOX 12-51
MSTR 12-52
ONERROR 12-53
PACK 12-53
PACKTAB 12-53
PARSE 12-54
PASSWORD 12-54
PGET 12-55
PSET 12-55
PUT 12-56
QUIT 12-56
RAND 12-56
REPLAY 12-57
RETURN 12-58
RST 12-58
RSTR 12-58
SAVESET 12-58
SEED 12-58
SETINI 12-59
SUBTITLE 12-59
SWITCH 12-60
SYSERR 12-60
TCMP 12-61
TITLE 12-61
TOOLBAR ADD 12-61
TOOLBAR DEL 12-63
TOOLBAR FIX 12-63
TOOLBAR FLOAT 12-63
TOOLBAR HIDE 12-63
TOOLBAR INS 12-63
UPP 12-64
VAR 12-64
Index-7
Index
WAIT 12-65
WHILE 12-65
WRT 12-66
Script File
Arithmetic operators 12-14
Command descriptions 12-23
Command summary 12-19
Creating 12-1
Error numbers 12-65, 12-67
Examples 12-4
Initiating using
Command line option 12-2
Escape sequence 12-3
File menu option 12-2
Initialization file command 12-1
Key or button definition 12-2
PPF file command 12-1
Numeric operators 12-14
PSET & PGET settings 12-73
Random number generator
12-56, 12-58
String operators 12-16
Syntax conventions 12-12
Scroll Arrows 2-16
Scroll Bar 2-16
Disable 11-20
Scroll Box
2-16
Scrolling Speed
7-35
Segments
Maximum in memory
Memory size 11-24
11-24
7-24
2-17
Setup Menus
Attributes 7-40
Button Tools 7-56
Index-8
7-13
Status Bar
Description 2-19
Disable 11-21
Index
T
Tek Mode
Host command summary
Selecting 2-9
Virtual key names B-2
Telnet
Initialization commands
Telnet Options
VT100 Mode
Host command summary
Selecting 2-9
E-7
11-12
7-19
Terminal Emulation
Selecting 2-9, 7-25
Terminal ID Setting
Terminal Reset
7-9
Terminal Settings
Text Cursor
VT52 Mode
Host command summary
Selecting 2-9
E-6
E-1
7-26
Terminal Server
Settings files on clients
VT220 Mode
Host command summary
Selecting 2-9
Virtual key names B-2
E-3
2-7, 7-6
7-31
2-22
W3220 Mode
Host command summary
Selecting 2-9
E-13
WIN.INI Commands
Summary 11-6
Toolbar
Adding buttons 5-5
Assigning functions 5-6
Disable 11-20
Floating button palette 5-1
Predefined button tools 5-2
Redefining 5-5
Removing buttons 5-8
Using 5-1
Window element 2-15
Window Elements
<< and >> 2-14
Border & corners 2-20
Emulation workspace 2-21
Gin cursor 2-23
Hotspots 4-4
Menu bar 2-13
Minimize & maximize buttons
Scroll arrow 2-16
Scroll bar 2-16
Scroll box 2-16
Selecting & using 2-12
Selection cursor 2-22
Soft Buttons 2-16
Status bar 2-19
Text cursor 2-22
Title bar 2-12
Toolbar 2-15
Troubleshooting
Display problems A-2, A-3
Incompatibility message A-1
RS232 communications A-3
Setup problems A-1
V
ViewDn Button
2-18
ViewUp Button
2-18
2-13
Window Frame
Disable 11-19
Window Resize
2-14
Index-9
Index
X
XMODEM
8-1
XMODEM-1K 8-1
Y
YMODEM Batch
8-2
Z
ZMODEM
8-2
Index-10