BRIZ

Termcap

The termcap allows to describe ESC sequences and to connect them to internal commands of the terminal. Besides it it is possible to describe and renominate any combinations of keys. Creation of unlimited set of emulation of terminals is possible. If the necessary command is not present or it is realized differently address in a support service

Structure of termcap file

Section number<tab>Terminal ID<tab>Enable Flag (0 disable/1enable)<tab>section information

Sections

  1. Terminal types
  2. Esc sequenses
  3. Key map

Terminal types - list of described terminals

structure: Section number<tab>Terminal ID<tab>Enable Flag (0 disable/1enable)<tab>Terminal name

Example: 1<tab>0<tab>1<tab>GPTERM

Esc sequenses - list of supported ESC sequenses

structure: Section number<tab>Terminal ID<tab>Enable Flag (0 disable/1enable)<tab>Command ID<tab>Group Name<tab>Termcap Name<tab>ESC Sequence<tab>Description

Example: 2<tab>0<tab>1<tab>00134<tab>grp1<tab><tab> 0 027 0 091 0 084<tab>GP_TERM SCROLL DOWN ri ESC [ T

See also List of internal commands

Key map - conformity of keys and the information sent on a server

structure: Section number<tab>Terminal ID<tab>Enable Flag (0 disable/1enable)<tab>Virtual key<tab>Output sequence<tab>Description

Example: 3<tab>0<tab>1<tab>VK_F1|<tab>\d2\d64<tab>

The output sequence is formed as well as in a context menu.

See also Hotkeys

Termcap editor

  1. Sets terminal name
  2. Sets alternate terminal name
  3. Sets terminal description
  4. Selects existing terminal for edit
  5. Creates new terminal
  6. Deletes existing terminal
  7. Saves termcap
  8. Applyes changes
  9. Loads termcap from file
  10. Closes editor
  11. Terminal description tab
  12. ESC sequenses tab
  13. Key mapping tab
  14. Termcap file name
  15. Browse termcap file

Remark terminal with ID=0 is base terminal, i.e. it contains the description of all elements. If in the terminal with the identifier not 0 there is no description of an element this description undertakes from the terminal with ID=0.

ESC sequenses tab

  1. Enable flag
  2. Command ID
  3. Termcap name
  4. Group name (using for easy sorting)
  5. Esc sequence
  6. Description
  7. Test parameters for ESC sequense
  8. Test button (Executes selected ESC sequence)
  9. Editor of selected ESC sequence
  10. Copyes Sequenses from another terminal type
  11. Deletes selected sequense
  12. Adds new sequense

 

Key mapping tab

 

    1. Enable flag
    2. Alt flag 
    3. Control key flag
    4. Shift key flag
    5. Windows key flag
    6. Easy TCL modificator flag
    7. Virtual key code
    8. Output string
    9. Action description
    10. Description
    11. Copyes Sequenses from another terminal type
    12. Deletes selected sequense
    13. Adds new sequense

 

Description of ESC sequence structure

FORMAT:

0 027 1 088 2 089 ......
Type Code Type Code Type Code   

Type values :
Value Description
0 Byte with code "Code"
1 value = decimal number
2 value = byte - 32
3 value = byte
4 value = mod(byte,90)

 

Code values:
Value Description
087 (W) Window identifier
083 (S) Screen identifier
084 (T) Object type
089 (Y) Y coordinate
121 (y) Y2 coordinate
088 (Y) X coordinate
120 (x) X2 coordinate
076 (L) Lenght
067 (C) COLOR (256)
082 (R) COLOR R
071 (G) COLOR G
066 (B) COLOR B

 

 

Examples:

** ESC [ _ANYY__ANY___ANY_ ; _ANYX__ANYX_ H
0 027 0 091 1 089 1 089 1 089 0 059 1 088 1 088 0 072

*** GP_TERM MessageBox
*** ESC Þ 055 tX tY
0 027 0 222 0 055 2 088 2 089

*** Load table
*** ESC @ 0
0 027 0 064 0 048

*** GP_TERM SUB GP.DAORecordsetClose(RSVar)
*** ESC ÷ 053
0 027 0 231 0 053