Consultor Eletrônico



Kbase P119194: How to map the VT220 PAGE-UP and  PAGE-DOWN keys?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/29/2006
Status: Unverified

GOAL:

How to map the VT220 PAGE-UP and PAGE-DOWN keys?

FACT(s) (Environment):

Progress 7.x
IBM AIX

FIX:

Progress Version 7 may not allow the use of the PAGE-UP and PAGE-DOWN keys when the terminal type is VT220. The escape key sequences given below are based on a real VT220 terminal and netterm terminal emulation software.
Progress does not support the modification of the PROTERMCAP file. Modification of the PROTERMCAP file is sometimes required based on your specific terminal or the terminal emulation package you are using.
1. Determine the TERM environment variable by issuing the following command:
echo $TERM
2. Determine the escape sequences for the PAGE-UP and PAGE-DOWN keys. This can be done by accessing vi and then issuing i (which means enter insert mode). Then press your Control and V key simultaneously. You will see a "^" symbol appear in the editor. Now press the key you are interested in determining the escape sequence for. Example: On DG/UX the escape sequences for these keys were: PAGE-UP = ^[v PAGE-DOWN = ^V
3. Edit the $DLC/PROTERMCAP file to reflect the following under the entry for VT220:
:PAGE-UP(PREV-SCRN)=\Ev: :PAGE-DOWN(NEXT-SCRN)=^V:
4. The PAGE-UP and PAGE-DOWN keys should now function. Please note the DG/UX example above is just an example. Use the steps above to obtain the actual sequences for the key(s) that need to be mapped and use these in editing their corresponding keys as described above in the PROTERMCAP file.