The text of a manual · part 12 of 14
JANUS 2.4 GHz Terminal Emulation Quick Reference Guide, pages 111 to 120
Pages 111 to 120 of 134
The original document is the PDF (582 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec JG2020
Page 111
CODEReference
A
TEDC.CFG Configuration File (continued) : The following will remap CTL-F1 if uncommented :Remap=<405E>="send this to the host<CR>" : remap CTL-F2 :Remap=<405F>="send something else to the host<CR>line 2<CR>" : macro for 'a' :Macro=<0061>="macro number 1<0d>" : macro for 'e' :Macro=<0065>="multi line macro <CR>line 2<0d>line 3<CR>" : use CTL-F5 as run macro key :RunMacro=<4062>
Sample Auto-Login Scripts Listed below are example auto-login scripts. You can use these scripts as they are or use them as the starting point for creating your own auto-login files. In the first example, the HostName command in this script will match the host the user will access. The “#” starts a comment that continues to the end of line. The WaitFor command waits for a string to be displayed by the host. The WaitFor command will take up to 10 strings 20 characters long. The strings must be enclosed in quotes and separated by a comma. The Send command in the example script sends a fixed user name and password. The angle brackets can enclose uppercase mnemonics or hex values. The next WaitFor/Send pair works the same as the first set.
Auto-Login Script With All Devices Using the Same Account HostName “*” WaitFor “login:” Send “user_name<CR>” WaitFor “Password:” Send “users_password<CR>”
# Use this to log into any host # Wait for the login prompt # Send the user name # Wait for the password prompt # Send the users password
A-13
Page 112
JANUS 2.4 GHz Terminal Emulation Quick Reference GuideCODE
In the next example, the Input and Send commands use input variables. Input commands require a prompt string followed by a comma and a variable name to store the string in. The InputHidden command Will display “*” in place of any characters typed by the user. All input commands must be before the first HostName command. The Send command only accepts a single argument so two sends are required to send the user name and a carriage return.
Auto-Login With Different User Names and Passwords Input “Enter user name”, username # prompt for user name InputHidden “Enter Password”, password # Prompt for password HostName “*” WaitFor “login:” # Wait for the login prompt Send username # Send the user name Send “<CR>” # Send a carriage return WaitFor “Password:” # Wait for the password prompt Send password # Send the users password Send “<CR>” # Send a carriage return
Additional modifications to this script allow the user to move automatically to an application after logging in.
Auto-Login to an Application Input “Enter user name”, username # prompt for user name InputHidden “Enter Password”, password # Prompt for password HostName “*” WaitFor “login:” # Wait for the login prompt Send username # Send the user name Send “<CR>” # Send a carriage return WaitFor “Password:” # Wait for the password prompt Send password # Send the users password Send “<CR>” # Send a carriage return WaitFor “Main Menu” # Wait for the main menu Send “3” Send “<CR>” # Pick option 3 from the menu WaitFor “Wip Menu” # Wait for the work in process menu Send “1” Send “<CR>” # Pick option 1 from the menu
A-14
Page 113
CODEReference
A
In the following script, a section for the host name BigHost is added to the beginning of the script. If the user logs into any host other than BigHost the script will start at the HostName “*” line. This allows for different processing on each host.
Auto-Login With Variable Processing Input “Enter user name”, username # prompt for user name InputHidden “Enter Password”, password # Prompt for password HostName “BigHost” # Use this portion of the script for BigHost WaitFor “User:” # Wait for the user prompt Send username # Send the user name Send “<CR>” # Send a carriage return WaitFor “Password:” # Wait for the password prompt Send password # Send the users password Send “<CR>” # Send a carriage return HostName “*” # Match any other host name WaitFor “login:” # Wait for the login prompt Send username # Send the user name Send “<CR>” # Send a carriage return WaitFor “Password:” # Wait for the password prompt Send password # Send the users password Send “<CR>” # Send a carriage return WaitFor “Main Menu” # Wait for the main menu Send “3” Send “<CR>” # Pick option 3 from the menu WaitFor “Wip Menu” # Wait for the work in process menu Send “1” Send “<CR>” # Pick option 1 from the menu
A-15
Page 114
Page 115
B VT/ANSI Keyboard Remapping
Page 116
Page 117
VT/ANSI Keyboard Remapping
B
This appendix provides information about VT/ANSI key support and instructions for remapping keys on your JANUS device.
Understanding VT/ANSI Key Support These tables show how the numeric and special keys on VT keyboards map to the JANUS keys when you set the Keypad mode in the Terminal screen.
VT100 Terminals This table shows what code is transmitted to the host when you press the numeric or special keys on a VT100 numeric keypad and a JANUS keypad. The transmitted code depends on if the Keypad mode is set to Numeric or Application mode. VT100 Numeric Keypad Key
JANUS Keys (Numeric Keypad Mode On)
Numeric Mode Transmitted Code
Application Mode Transmitted Code
0
0
0
Esc O p
1
1
1
Esc O q
2
2
2
Esc O r
3
3
3
Esc O s
4
4
4
Esc O t
5
5
5
Esc O u
6
6
6
Esc O v
7
7
7
Esc O w
8
8
8
Esc O x
9
9
9
Esc O y
- (minus)
Alt h
- (minus)
Esc O m
, (comma)
Alt v
, (comma)
Esc O l
. (period)
Alt w
. (period)
Esc O n
PF1
F1
Esc O P
Esc O P
PF2
F2
Esc O Q
Esc O Q
PF3
F3
Esc O R
Esc O R
PF4
F4
Esc O S
Esc O S
Enter
F5
CR
Esc O M
B-3
Page 118
JANUS 2.4 GHz Terminal Emulation Quick Reference Guide
VT220/320 Terminals This table shows what code is transmitted to the host when you press the keys on a VT220/320 keypad and a JANUS keypad.
B-4
VT220/320 Key
JANUS Key
VT220/320 Transmitted Code
Find
Home
CSI 1 ~
Insert Here
Insert
CSI 2 ~
Remove
Delete
CSI 3 ~
Select
End
CSI 4 ~
Previous Screen
Page Up
CSI 5 ~
Next Screen
Page Down
CSI 6 ~
F1 (Hold Screen)
None
None (Local function keys)
F2 (Print Screen)
None
None (Local function keys)
F3 (Set Up)
None
None (Local function keys)
F4
None
None (Local function keys)
F5 (Break)
None
None (Local function keys)
F6
F6
CSI 1 7 ~
F7
F7
CSI 1 8 ~
F8
F8
CSI 1 9 ~
F9
F9
CSI 2 0 ~
F10
F10
CSI 2 1 ~
F11 (Esc in VT100 mode)
Alt F1
CSI 2 3 ~
F12 (BS in VT100 mode)
Alt F2
CSI 2 4 ~
F13 (LF in VT100 mode)
Alt F3
CSI 2 5 ~
F14
Alt F4
CSI 2 6 ~
F15 (Do)
Alt F5
CSI 2 8 ~
F16 (Help)
Alt F6
CSI 2 9 ~
F17
Alt F7
CSI 3 1 ~
F18
Alt F8
CSI 3 2 ~
F19
Alt F9
CSI 3 3 ~
F20
Alt F10
CSI 3 4 ~
Page 119
VT/ANSI Keyboard Remapping
B
This table shows what code is transmitted to the host when you press the numeric or special keys on a VT220/320 numeric keypad and a JANUS keypad. The transmitted code depends on if the Keypad mode is set to Numeric or Application mode. VT220/320 Numeric Keypad Keys
JANUS Key(s) (Numeric Keypad On)
Numeric Mode Transmitted Code
Application Mode Transmitted Code
0
0
0
SS3 p
1
1
1
SS3 q
2
2
2
SS3 r
3
3
3
SS3 s
4
4
4
SS3 t
5
5
5
SS3 u
6
6
6
SS3 v
7
7
7
SS3 w
8
8
8
SS3 x
9
9
9
SS3 y
- (minus)
Alt h
- (minus)
SS3 m
, (comma)
Alt v
, (comma)
SS3 l
. (period)
Alt w
. (period)
SS3 n
PF1
F1
SS3 P
SS3 P
PF2
F2
SS3 Q
SS3 Q
PF3
F3
SS3 R
SS3 R
PF4
F4
SS3 S
SS3 S
Enter
F5
CR or CR LF
SS3 M
B-5
Page 120
JANUS 2.4 GHz Terminal Emulation Quick Reference Guide
ANSI Terminals ANSI terminals support standard alphanumeric keys and arrow keys. However, they do not support function keys. This table lists the JANUS TE keys that carry out special runtime functions.
>G >H >I >K <9 <C <E <B <D AC AE AB AD
JANUS Key
TE Runtime Function Enter Line mode Enter Character mode Enter hot key configuration menu Exit TE Sends an answerback string to the host. Move viewport up by one line Move viewport down by one line Move viewport left by one column Move viewport right by column Move viewport up by one viewport Move viewport down by one viewport Move viewport left by one viewport Move viewport right by one viewport
Remapping the JANUS Keys You can modify the VT/ANSI configuration file (TE.CFG for UDP Plus or TEDC.CFG for Telnet) on your JANUS device to remap a JANUS key or a twokey sequence. When you remap JANUS keys, you are changing the function of the keys on your JANUS device. You may need to remap keys if your terminal emulation program requires users to press a key that is not on a standard 101key keyboard. You can also create a macro and remap a key or two-key sequence to run the macro. See Appendix A for configuration file listings. You can remap any JANUS key or two-key sequence that performs an action specific to a PC or that does not perform any JANUS action. For example, you can remap because it performs the PC action of typing a lowercase letter A. You can also remap because it does not perform any JANUS action.
>
>C
You cannot remap a JANUS key or two-key sequence that performs an action specific to JANUS devices. For example, moves the viewport up, which is a JANUS-specific action.
B-6