Terminal Type Level Mapping
The next higher level of mapping is terminal type. Each terminal type used at your installation needs its own mapping file, because function key support varies from terminal to terminal. Combined with the installation mapping, this file provides a common terminal default for the function and control keys, which can be altered by mappings at higher levels to fit the needs of an application or an individual user. Arrow keys are defined by default in the termcap file.
The terminal-type mapping file must be placed in the following directory:
UNIX:
$II_SYSTEM/ingres/files/
VMS:
II_SYSTEM:[ingres.files]
You can specify the terminal-type mapping file name with the mf capability in the termcap file description for each terminal type in use at an installation. You can also point to a termcap file by using the II_TERMCAP_FILE environment variable/logical.
Default mapping files for VT100 and VT220 terminals are shipped with Ingres. You can edit these files if desired. (The termcap file descriptions for the vt100i and vt220i terminal definitions already have the names of their mapping files specified; therefore, there is no need to edit those termcap descriptions.)
Terminal Type vt100i Map File
For VT100 terminals defined as the vt100i terminal type, the mapping file location is:
UNIX:
$II_SYSTEM/ingres/files/vt100i.map
VMS:
II_SYSTEM:[ingres.files]vt100i.map
It contains the following statements:
/* Menu Key */
menu = pf1 (PF1)
/* Help facility */
frskey1 = pf2 (PF2)
/* Quit from program */
frskey2 = pf4 (PF4)
/* End current screen and return */
/* to previous screen */
frskey3 = pf3 (PF3)
/* Go or execute function */
frskey4 = pf18 (Enter)
/* Put cursor on top of form or */
/* table field*/
frskey5 = controlK (^K)
/* Put cursor on bottom of form or */
/* table field*/
frskey6 = controlJ (^J)
/* Find next occurrence of string*/
/* in this column of table field */
frskey7 = controlF (^F)
/* Save object in database */
frskey8 = pf16 (0)
/* Cancel and undo */
frskey9 = pf17 (.)
/* ListChoices */
frskey10 = pf7 (9)
/* Scroll page or form left */
scrollleft = controlL (^L)
/* Scroll page or form right */
scrollright = controlH (^H)
/* Previous screen or set of rows */
/* in table field */
scrolldown = pf8 (‑)
/* Next screen or set of rows in */
/* table field */
scrollup = pf12 (,)
/* Print contents of current screen */
/* to file or printer */
printscreen = controlG (^G)
/* Select first menu item */
menuitem1 = pf13 (1)
/* Select second menu item */
menuitem2 = pf14 (2)
/* Select third menu item */
menuitem3 = pf15 (3)
/* Select fourth menu item */
menuitem4 = pf9 (4)
/* Select fifth menu item */
menuitem5 = pf10 (5)
/* Select sixth menu item */
menuitem6 = pf11 (6)
/* Select seventh menu item */
menuitem7 = pf5 (7)
/* Select eighth menu item */
menuitem8 = pf6 (8)
/* Move cursor to next field */
/* defined to controlI in frs.map */
/* Move cursor to previous field */
/* defined to controlP in frs.map */
/* Move up one word within field */
nextword = controlU (^U)
/* Move back one word within field */
/* defined to controlR in frs.map */
/* Switch between insert and overstrike */
/* mode defined to controlE in frs.map */
/* Redraw the screen defined to controlW */ /* in frs.map */
/* Delete the character under the cursor */
/* defined to controlD in frs.map */
/* Delete character immediately to left */
/* of cursor‑‑defined to controlDEL */
/* in frs.map */
/* Start default text editor on field */
/* defined to controlV in frs.map */
/* Move to first column of next row */
/* in table field defined to controlN */
/* in frs.map */
UNIX:
/* Clear the field */
clear = controlX (^X)
VMS:
/* Clear the field */
clear = controlB (^B)
/* Move to nextitem in form. If on */
/* regular field, move to next field. */
/* If in table field, move to next column */
/* if NOT in last accessible column.*/
/* Move to next row if in last accessible */
/* column of table field. */
nextitem = controlM (Return)
/* Auto‑duplicate value while in */
/* fill mode defined to controlA */
/* in frs.map */
Terminal Type vt220i Map File
The default file for VT220 terminals is located in:
UNIX:
$II_SYSTEM/ingres/files/vt220i.map
VMS:
II_SYSTEM:[ingres.files]vt220i.map
The VT220 mapping file contains these statements:
/* Menu Key */
menu = pf1 (PF1)
/* Help facility */
frskey1 = pf15 (Help)
/* Quit from program */
frskey2 = pf4 (PF4)
/* End current screen and */
/* return to previous screen */
frskey3 = pf3 (PF3)
/* Go or execute function */
frskey4 = pf16 (Do)
/* Put cursor on top of form or */
/* table field */
frskey5 = controlK (^K)
/* Put cursor on bottom of form or */
/* table field */
frskey6 = controlJ (^J)
/* Find next occurrence of string */
/* in this column of table field */
frskey7 = pf21 (Find)
/* Save function */
frskey8 = pf10 (PF10)
/* Undo and cancel */
frskey9 = pf2 (PF2)
/* Bring Up ListChoices */
frskey10 = pf20 (PF20)
/* Scroll page or form left */
scrollleft = controlL (^L)
/* Scroll page or form right */
scrollright = controlH (^H)
/* Previous screen or set of rows */
/* in table field */
scrolldown = pf25 (Prev Screen)
/* Next screen or set of rows */
/* in table field */
scrollup = pf26 (Next Screen)
/* Print contents of current screen */
/* to file or printer */
printscreen = pf8 (PF8)
/* Select first menu item */
menuitem1 = pf11 (PF11)
/* Select second menu item */
menuitem2 = pf12 (PF12)
/* Select third menu item */
menuitem3 = pf13 (PF13)
/* Select fourth menu item */
menuitem4 = pf14 (PF14)
/* Select fifth menu item */
menuitem5 = pf17 (PF17)
/* Select sixth menu item */
menuitem6 = pf18 (PF18)
/* Select seventh menu item */
menuitem7 = pf19 (PF19)
/* Remove character under cursor */
deletechar = pf23 (Remove)
/* Switch between insert and overstrike */
mode = pf22 (Insert Here)
/* Move cursor to next field defined */
/* to controlI in frs.map */
/* Move cursor to previous field */
/* defined to controlP in frs.map */
/* Move up one word within field */
nextword = controlU (^U)
/* Move back one word within field */
/* defined to controlR in frs.map */
/* Redraw the screen defined to */
/* controlW in frs.map */
/* Delete character immediately to left */
/* of cursor defined to controlDEL */
/* in frs.map */
/* Start default text editor on field */
/* defined to controlV in frs.map */
/* Move to first column of next row in */
/* table field defined to controlN */
/* in frs.map */
UNIX:
/* Clear the field */
clear = controlX (^X)
VMS:
/* Clear the field */
clear = controlB (^B)
/* Move to nextitem in form. If on */
/* regular field, move to next field. */
/* If in table field, move to next column */
/* if NOT in last accessible column.*/
/* Move to next row if in last accessible */
/* column of table field. */
nextitem = controlM (Return)
/* Auto‑duplicate value while in fill */
/* mode defined to controlA in frs.map */