PASSPORT Knowledge Base
Configuration
Date Published: May 19, 2004
Date Updated: February 27, 2008
Title
Mapping Escape Sequences
Product
PASSPORT PC to Host
Emulation Types
VT, SCO ANSI, Wyse 60
Issue
Is it possible to map escape sequences to a VT keyboard map?
Solution
Escape sequences can now be mapped directly to a key. Follow the steps below to configure:
- Choose the Options®Keyboard menu command.
- Select the Language you would like to use.
- Select one of the following standard keyboard maps: PASSPORT, EXTRA!®, Rumba or IBM.
- Click the Customize... button. The Customize Keyboard Editor dialog box will be displayed. The keyboard map that is used for the starting point is defined by the selections you made in steps 2 and 3 above.
- Highlight the keyboard button you want to customize.
- Select either the Normal, Shift, Ctrl, Alt, Alt-Gr, Alt-Shift, Alt-Ctrl, or Shift-Ctrl radio button located in the Define Function or Assignment area.
- Click on the large Edit button on the right side of the dialog box. The Key Properties dialog box will display.
- Select the Text String category then type the escape sequence into the Text String field (for example, <ESC>[C).
- Click OK twice to save the custom keyboard map.
More Information
-
Feature added in PASSPORT PC to Host version 2004-930
-
For versions prior to version 2004-930:
Escape sequences cannot be directly mapped to a key, however, a macro could be used to send the appropriate keystrokes to the host. The macro could then be mapped to any key on the VT keyboard map. Follow the steps below:
-
- Create a PASSPORT macro file with the .MAC extension similar to the following and place in the folder where PASSPORT is installed ("C:\Program Files\PASSPORT\" by default):
Sub ZMain()
SendHostKeys ("<ESC>")
SendHostKeys ("[Z")
End Sub
- From an active PASSPORT session, choose the Options®Keyboard menu command and click Customize to map the above macro to the desired key.
- Save the custom keyboard map.
Keywords
keyboard, vt, escape sequence