From: HENRY::IN%"art%MITRE.ARPA%SRI-KL.ARPA%relay.cs.net@rca.com" 13-SEP-1986 17:43 To: info-vax@sri-kl Subj: Re: use of VT220 function keys Yes it is easy to define the function keys on a VT220. However, since the VT220 can take several modes of operation, I need to define the assumptions I have made. 1) VT220 is in 7 bit VT220 mode. 2) The Cursor Key mode is Reset (NORMAL). Use of eight bit mode or cursor application mode result in the need of changing the codes loaded. The right arrow sends CSI C which in 7 bit mode is [C. To Load the function keys create a file containing the following (could be a program containing it but a file can be created just as easily) P0;1|23/1B;24/08;25/0A;26/1B5B437F* This will 1) Clear the loaded keys 2) Load an escape into F11 a Backspace into F12 a Linefeed into F13 the sequuence right arrow, DEL into F14. Note that the is only an escape character (1B) The 0 in P0 says to clear previous key definitions the 1 says to leave the keys unlocked The character between 1 and 23 is the vertical bar (shifted \) The characters between the / and the ;(or ending ) are the Hex representations of the ascii characters loaded into the key. - 1B [ - 5B C - 43 DEL - 7F All information taken from the VT220 programmers Reference Manual EK-VT220-RM-002 After creating such a file (1 line), copy it to the terminal (TYPE). The keys will now be defined. To use the downloaded key definiton press shift while striking the function key. - Arthur T. McClinton Jr., (703) 883-6356 The MITRE Corporation, Mail Stop Z305 1820 Dolley Madison Blvd. McLean, VA 22102