/usr/share/doc/the/html/overview.html is in the-doc 3.3~b4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | <HTML>
<HEAD><TITLE>THE Reference - Overview </TITLE></HEAD>
<BODY BGCOLOR="#F1EDD1" LINK = "#0000FF" VLINK = "#FF0022" ALINK = "#808000">
<CENTER> <img WIDTH="64" HEIGHT="64" HSPACE="20" SRC="the64.png" ALT="THE"> </CENTER>
<HR>
<A NAME="INTRODUCTION"></A>
<H2> INTRODUCTION </H2>
<HR>
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 KEDIT from Mansfield Software. <P>
THE was originally written to be used by people already familiar with the above editors. For this reason, this document provides limited information on using THE, and concentrates more on reference material, such as command syntax and configuration. <P>
<HR>
<A NAME="LICENSE"></A>
<H2> LICENSE </H2>
<HR>
THE (The Hessling Editor) is Copyright (C) 1990-2002 Mark Hessling <P>
Permission is granted to copy, distribute and/or modify the software under the terms of the GNU GENERAL PUBLIC LICENSE, Version 2 or any later version published by the Free Software Foundation. See the file "COPYING" that is distributed with the software. <P>
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". <P>
<HR>
<A NAME="THEBASICS"></A>
<H2> THE BASICS </H2>
<HR>
The default screen displayed when THE starts consists of several areas: <P>
<UL>
<LI> a window which displays the contents of the file being editted. This is the <A HREF = "glossary.html#FILEAREA">filearea</A> , </LI>
<LI> a <A HREF = "glossary.html#COMMANDLINE">command line</A> from which commands may be issued, </LI>
<LI> a <A HREF = "glossary.html#PREFIXAREA">prefix area</A> which shows line numbers and from which prefix commands can be issued </LI>
<LI> an <A HREF = "glossary.html#IDLINE">idline</A> which displays the file name, row/col etc. for the current file and </LI>
<LI> a <A HREF = "glossary.html#STATUSLINE">status line</A> which indicates global status info like number of files being editted, time etc. </LI>
</UL>
When THE starts, the cursor is positioned on the <A HREF = "glossary.html#COMMANDLINE">command line</A> . To move between the <A HREF = "glossary.html#COMMANDLINE">command line</A> and the <A HREF = "glossary.html#FILEAREA">filearea</A> , the <A HREF = "comm.html#CURSOR">CURSOR</A> 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). <P>
To execute commands from the <A HREF = "glossary.html#COMMANDLINE">command line</A> simply type the command and press the ENTER (or RETURN) key. <P>
To determine what keys are bound to what commands, execute the <A HREF = "comm.html#SHOWKEY">SHOWKEY</A> command from the <A HREF = "glossary.html#COMMANDLINE">command line</A> . 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 <A HREF = "comm.html#SHOWKEY">SHOWKEY</A> command, press the spacebar. <P>
Key bindings may be changed for the current session by using the <A HREF = "comm.html#DEFINE">DEFINE</A> command. To keep key bindings between sessions, the <A HREF = "comm.html#DEFINE">DEFINE</A> commands can be placed in a <A HREF = "glossary.html#PROFILE">profile</A> file, which is executed each time THE starts. For more information on this, see the next section; PROFILE FILE. <P>
It is possible to make THE look and behave more like either XEDIT or KEDIT. See the <A HREF = "commset.html#SETCOMPAT">SET COMPAT</A> command for further information. <P>
As mentioned before, this document provides little tutorial information. For those users who have a <A HREF = "glossary.html#REXX">REXX</A> enabled version of THE, a self-running demonstration <A HREF = "glossary.html#MACRO">macro</A> is supplied which will provide a better explanation of the capabilities of THE, than any documentation could. To run this demonstration, start THE as follows: <P>
<table width="100%" border="1" cellpadding="4" cellspacing="0" bgcolor="#cccccc"><tr><td><blockquote>
the -p demo.the demo.txt <BR>
</blockquote></td></tr></table><br>
<HR>
<A NAME="COMMAND-LINESWITCHES"></A>
<H2> COMMAND-LINE SWITCHES </H2>
<HR>
THE recognises many command-line switches when starting THE. All switches are specified with a single <I>-</I> followed by a single character. The case of this character is relevant. Some switches take extra parameters; those that take optional extra parameters are indicated by the extra parameter being stated below in <I>[]</I> . The purpose of each of the switches is as follows: <P>
<UL>
<LI> -n Run THE without any profile. Normally THE tries to find a profile file and execute this on startup. This switch suppresses that search and execute and runs THE in its default mode. This switch is useful for determining if a bug in THE occurs only with certain user-specific customisations. </LI>
<LI> -m On ports of THE that support colour, this switch forces THE into monochrome mode. More a testing feature than a user feature. </LI>
<LI> -r This switch enabls THE to be run in readonly mode. In this mode commands that alter the contents of a file are invalid. </LI>
<LI> -s On Unix platforms, this switch enables the writing of a core file if THE crashes. Normally, THE traps any internal errors and exits gracefully. This switch is a testing feature rather than a user feature. </LI>
<LI> -b When you want to use THE as a non-interactive tool for manipulating the contents of one or more files, this switch will disable any display of file contents and disable keybord interaction. Normally used in conjunction with a specific profile; see -p option. </LI>
<LI> -q Run quietly in batch mode. This will suppress the introductory informative message displayed when errors are encountered running in batch. </LI>
<LI> -k[fmt] Allows <I>soft label keys</I> . This allows the display of one (or two) lines at the bottom of the screen with <I>buttons</I> intended to be used to represent function keys. These <I>soft label keys</I> can be manipulated with the <A HREF = "commset.html#SETSLK">SET SLK</A> command. The <I>fmt</I> optional extra argument is a single digit representing the format of the display of the <I>buttons</I> . <DL> <DD> 1 - displays 8 <I>buttons</I> in a 4-4 layout <DD> 2 - displays 8 <I>buttons</I> in a 3-2-3 layout <DD> 3 - displays 12 <I>buttons</I> in a 4-4-4 layout <DD> 4 - displays 12 <I>buttons</I> in a 4-4-4 layout with an index line <DD> 5 - displays 10 <I>buttons</I> in a 5-5 layout </DL> <BR> Not all platforms support all 5 format options. On those ports of THE that are mouse-aware, the mouse can be pressed on a <I>button</I> , and the command assigned the the coresponding function key is executed. </LI>
<LI> -l line This switch specifies the line number to make current when THE starts. </LI>
<LI> -c col This switch specifies the column number to make current when THE starts. </LI>
<LI> -p profile Specifies the THE profile to run instead of the default profile. See next section for further details. </LI>
<LI> -a profile_arg Specifies the arguments that are passed to the profile specified with the -p switch. </LI>
<LI> -w width Specifies the maximum line width for a line in the current edit session. Can be overridded with the <A HREF = "commset.html#SETWIDTH">SET WIDTH</A> command. </LI>
<LI> -u display_width THE can run as a binary editor. Specifying this switch tells THE to read in the file and display it in <I>lines</I> that are <I>display_width</I> long. All end-of-line characters in the file are ignored and are treated as other characters in the file. </LI>
<LI> -X X11_switches With the X11 port of THE, standard X11 switches can be specified with this switch to dynamically configure the way THE displays or behaves. You can also specify XCurses-specific switches here as well. For more information on the XCurses switches available, consult the PDCurses documentation. </LI>
<LI> -1[dir] Tells THE to run in <I>Single Instance Mode</I> . The first time THE is run with the -1 switch, it starts as normal. Subsequent executions of THE with the same -1 command-line switch will not start a new instance of THE, rather it will edit the file(s) specified on the command-line in the currently running instance of THE. You can optionally supply a directory with the -1 switch to specify where the THE FIFO (.thefifo) is created. If not supplied, the THE FIFO is created in the users $HOME directory. This feature is currently only available with the X11 port of the using XCurses 2.5 and greater. If the first instance of THE with the -1 switch crashes for any reason, subsequent attempts to run THE with the same -1 switch will hang. To fix this remove the FIFO and then run THE with the -1 switch again. </LI>
</UL>
After all the above switches are stated on the command line, THE treats the remainder of the command line as files or directories to edit. <P>
<HR>
<A NAME="PROFILEFILE"></A>
<H2> PROFILE FILE </H2>
<HR>
Various session defaults may be changed on startup for an individual by using a <A HREF = "glossary.html#PROFILE">profile</A> file. This file contains various commands that set the current environment, including key bindings. This <A HREF = "glossary.html#PROFILE">profile</A> file can also be used to process commands in batch mode. <P>
THE will always execute a default profile. Appendix 1 defines the name of the default profile on different platforms. <P>
An example of a profile might be to change all occurrences of <I>alligator</I> to <I>crocodile</I> in the file <I>file.ext</I> in batch mode, a <A HREF = "glossary.html#PROFILE">profile</A> file; <I>prf.prf</I> with the following commands would be used: <P>
<table width="100%" border="1" cellpadding="4" cellspacing="0" bgcolor="#cccccc"><tr><td><blockquote>
'c/alligator/crocodile/ * *' <BR>
'file' <BR>
</blockquote></td></tr></table><br>
and the command <P>
<table width="100%" border="1" cellpadding="4" cellspacing="0" bgcolor="#cccccc"><tr><td><blockquote>
the -b -p prf.prf file.ext <BR>
</blockquote></td></tr></table><br>
would be issued. <P>
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 (*). <P>
Maybe you only want to change a string after the first line that contains the string <I>donkey</I> , but only change the second occurrence of that string. The profile commands would then be: <P>
<table width="100%" border="1" cellpadding="4" cellspacing="0" bgcolor="#cccccc"><tr><td><blockquote>
'/donkey/' <BR>
'c/alligator/crocodile/ * 1 2' <BR>
'file' <BR>
</blockquote></td></tr></table><br>
The change command uses a <A HREF = "glossary.html#TARGET">target</A> specification as its first parameter after the string details. A <A HREF = "glossary.html#TARGET">target</A> can be a number of lines, an absolute line number, BLANK, ALL or a string. <P>
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 <I>*</I> , which is all the remaining lines in the file or <I>-*</I> which is all lines toward the start of the file. <P>
An absolute line number in the form of <I>:n</I> is the line number in a file, starting with line number 1. <P>
<P Align="Center"><HR>
The HTML version of this manual was inspired by <A HREF = "mailto:judygs@uic.edu">Judith Grobe Sachs </A>
<P Align="Center"><HR>
<ADDRESS>
The Hessling Editor is Copyright © <A HREF = "http://www.rexx.org/">Mark Hessling</A>, 1990-2010
<<A HREF = "mailto:mark@rexx.org">mark@rexx.org</A>>
<BR>Generated on: 7 Jul 2010
</ADDRESS><HR>
Return to <A HREF = "index.html#TOC"> Table of Contents </A><BR>
</BODY> </HTML>
|