| ACADEMIC COMPUTING and COMMUNICATIONS CENTER | |||||||||
Key Bindings
| ||
IntroductionXEDIT users are familiar with program function keys PF1 - PF24 on CMS. These function keys are part of the IBM 3270 protocol and do not exist as such on UNIX systems. UNIX provides for the definition of 64 function keys, F0 - F63, plus the four keys PF1, PF2, PF3 and PF4, but their use is not well supported. The implementation is dependent on defining your terminal type to the UNIX environment and how well your terminal emulation software emulates the terminal it claims it does. Learning how to use your particular software and keyboard combination may be reminicent of first using UICVM in fullscreen mode.Local EnhancementsTHE at UIC has been customized to recognize escape sequences. Click here to see a table of those escape sequences.Keys as recognized by THETHE provides a way to define a command for any key on your keyboard that the system recognizes. The 64 UNIX function keys are mapped as follows:
The alphebetic keys are recognized as their letter name, preceded by "S-" if shifted and "C-" if entered while the "control" key is depressed. The numeric and punctuation keys are all recognized as their regular name. Special keys such as "Page Up", "Enter", "Tab", etc. are recognized by special names which will have to be discovered experimentally as these names will vary depending on your terminal type or emulation software. Default Control Key DefinitionsBesides function keys, THE recognizes control keys. These are the alphabetic keys entered while holding down the "ctl" or "ctrl" key. The standard THE definitions are as follows:C-A sos cursoradj C-B mark box C-C copy block reset C-D duplicate 1 block C-E sos delend C-F fillbox C-G delete block C-H sos delchar C-I sos tabf C-J join aligned C-K copy block C-L mark line C-M enter C-O overlaybox C-P sos doprefix C-Q sos undo C-R redraw C-S split aligned C-U reset block C-V move block reset C-W sos delword C-X sos edit C-Z suspendNote that some special keys such as "enter" and "tab" normally generate these control keys, e.g. pressing the "enter" key actually sends "C-A", therefore, if you define "C-A" to be something other than "enter" you have also redefined the function of the "enter" key. Also note that some control keys are interpreted by the operating system and never get passed on to the editor. By default on tigger this includes "C-S", which stops terminal output, and "C-Q", which resumes terminal output. If you stop receiving terminal output and none of your keystrokes are being displayed it may be because you accidently entered "C-S". You can recover from this by entering "C-Q". Discovering what key does what - the SHOWKEY commandBecause of differences in the environment, THE does not provide the QUERY PFKEYS command present in XEDIT. Entering the command SHOWKEY (or just SHOW) on the command line will prompt the user to enter a key and respond with the key name and any assigned command. To exit from SHOWKEY, press the space bar.Binding a command to a key - the DEFINE commandThe DEFINE command allows the user to assign one or many commands and optional parameter(s) to a key. Commands may be abbreviated. With no arguments, any existing definition for that key is removed and the key reverts back to its default assignation (if it had any). Key-names correspond to the key name shown with the SHOWKEY command.Some examples
Return to the
index.The Hessling Editor is Copyright © Mark Hessling, 1990-1998 <M.Hessling@qut.edu.au> Last modified: April 9, 1999 |
||
| 2000-2-16 document@uic.edu |
|