Monday, September 29, 2008

The escape sequences recognized by the SAPVtio engine can be configured in the text file created for that purpose. The following will explain the format of this file, so that the terminal configuration can be extended or new terminal support added.

Here, an example of the terminal configuration file contents:

[A 0 38 % Up arrow

[B 0 40 % Down arrow

[C 0 39 % Right arrow

[D 0 37 % Left arrow

[P 0 46 % Delete key

OP 0 112 % F1

OQ 0 113 % F2

OR 0 114 % F3

OS 0 115 % F4

[15~ 0 116 % F5

[17~ 0 117 % F6

[18~ 0 118 % F7

[19~ 0 119 % F8

[20~ 0 120 % F9

[21~ 0 121 % F10

%XX 0 122 % F11 - inactive

%XX 0 123 % F12 - inactive

%XX 0 124 % F13 - inactive

%XX 0 125 % F14 - inactive

%XX 0 126 % F15 - inactive

%XX 0 127 % F16 - inactive

%XX 0 128 % F17 - inactive

%XX 0 129 % F18 - inactive

%XX 0 130 % F19 - inactive

%XX 0 131 % F20 - inactive

%XX 0 132 % F21 - inactive

%XX 0 133 % F22 - inactive

%XX 0 134 % F23 - inactive

%XX 0 135 % F24 - inactive

Each line in the file identifies one escape sequence recognized by SAPVtio. A line starting with ‘%’ is considered commented and is disregarded. Any text on that line following a ‘%’ sign is a comment.

The escape sequence is identified by 3 parameters:

    1. The escape sequence characters (not including the ESC character which starts the sequence)
    2. The ASCII key code that is to be generated upon recognition of this sequence (usually 0 for extended keys)
    3. The Windows Virtual Key code to be generated upon recognition of this sequence

All numbers specified in the terminal configuration file are decimal.

Leaving content frame

0 comments: