| ACADEMIC COMPUTING and COMMUNICATIONS CENTER | |||||||||
The Hessling Editor | ||||||||
| Overview | ||||||||
|
THE is a text editor that uses both command line commands and key bindings to operate. It is intended to be similar to the VM/CMS System Product Editor, XEDIT, and to Mansfield Software KEDIT. THE was originally written to be used by people already familiar with the above
editors. For this reason, there is limited information on using THE. Greater
emphasis is placed on reference materials, such as command syntax and configuration. |
||||||||
| Getting Started | ||||||||
|
There are two derivations available:
To start the text mode version, enter:
To start the X11 port of the editor, enter
When using the X11 version, you may need to set the environmental variable DISPLAY to the hostname of the remote machine from which you are accessing argo. To get that hostname, run the command:
Whatever appears between the opening/closing paranthesis is the hostname. The command that you use to set the DISPLAY variable is dictated by your SHELL script. If you are using the bash shell, then the appropriate command is export DISPLAY; if the C-shell, then setenv. Examples: your hostname is jsmith.cc.uic.edu, then:
|
||||||||
| Basics | ||||||||
|
The default screen displayed when THE starts consists of several areas:
When THE starts, the cursor is positioned on the command line . To move between the command line and the filearea , the CURSOR HOME command is used. By default this command is bound to the HOME key (under DOS and OS/2), the DO key (on vt220s) and HOME (on xterms). To execute commands from the command line simply type the command and press the ENTER (or RETURN) key. To determine what keys are bound to what commands, execute the SHOWKEY command from the command line . As you press each key, THE will respond with the name of the key and any commands bound to that key. To exit from the SHOWKEY command, press the spacebar. Key bindings may be changed for the current session by using the DEFINE command. To keep key bindings between sessions, the DEFINE commands can be placed in a profile file, which is executed each time THE starts. For more information on this, see the next section; PROFILE FILE. It is possible to make THE look and behave more like either XEDIT or KEDIT. See the SET COMPAT command for further information. Default Profile (Customizing THE) |
||||||||
| Default Profile | ||||||||
|
Various session defaults may be changed on startup for an individual by using a profile file. A profile is used to:
If you:
THE will use the default profile. If you wish to have your own profile for THE, perhaps to define special keys
or to override system settings, you start by coping the default profile to your
home directory: cp /usr/local/share/THE/.therc ~$HOME From now on, THE will use the .therc file in your home directory as its profile. You can make any additions or changes to it. A profile file can be used to process commands in batch mode. For example, to change all occurrences of 'alligator' to 'crocodile' in the file file.ext in batch mode, a profile file (prf.prf) with the following commands would be used:
and the command
would be issued. This changes the first string enclosed in delimiters (generally any non-alphabetic character not in the string itself) to the second string for every line (*) starting at the current line (0 initially) changing each occurrence on a line (*). Maybe you only want to change a string after the first line that contains the string donkey , but only change the second occurrence of that string. The profile commands would then be:
The CHANGE uses a target specification as its first parameter after the string details. A target can be a number of lines, an absolute line number, BLANK, ALL or a string. Number of line targets consist of either a positive integer, for referencing lines toward the end of the file, negative for referencing toward the start of the file or * , which is all the remaining lines in the file or -* which is all lines toward the start of the file. An absolute line number in the form of :n is the line number in a file, starting with line number 1. |
||||||||
| Obtaining Help | ||||||||
|
There are five sources of help for THE:
Help inside THE is available by:
The THE man page
HTML documents
Postscript File
The THE discussion group
|
||||||||
| 2006-1-19 ACCC Systems Group |
|