DISPLAY
to get the default host and display number.
A text editor for x with drag and drop and accents capabilities.
editor [-toolkitoption ...]
[filename]
[line-number]
Editor accepts all of the standard X Toolkit command line options (see X(1)). The order of the command line options is not important.
Specifies the file that is to be loaded during start-up. This is the file which will be edited. If a file is not specified, editor lets you load a file or create a new file after it has started up. The filename `-' means to read from standard input. When reading from stdin, editor will quit if it reaches end of file without reading anything from stdin.
Specifies the current line number after start-up.
Editor provides a window consisting of the following three areas:
A set of pull-down menus hopefully allowing you to do everything you want with the text file.
Displays the name of the file currently being edited, and whether this file is Read - Write or Read Only. You can also drag and drop a file in this area and the editor will automatically load this file (provided you are using the DND drag and drop protocol). If the file is saved you can drag the file name from this area too.
Displays the text of the file that you are editing or creating.
The Athena Text widget is used for the three sections of this application that allow text input. The characters typed will go to the Text widget that the pointer cursor is currently over. If the pointer cursor is not over a Text widget then the keypresses will have no effect on the application.
For editor the available resources are:
Specifies that, when edits made to an existing file are saved, editor is to copy the original version of that file to file<suffix> before it saves the changes. The default value for this resource is "off", stating that no backups should be created.
Specifies a string that is to be appended to the backup filename. The default is to append the string ".BAK".
Specifies a command for printing the current file. An "%f" in the string is expanded to the filename which has to be printed (A copy of the current file in the tmp directory). "%t" is expanded to the real filename. The default command is "lpr -p -T %t %f".
Specifies whether to autoindent by default or not. The default is to autoindent.
Specifies whether to break a line when the user attempts to type into the right margin or not.
Specifies default wrapmode for lines longer than the textwindow. Values are never, word and line. The default value is never.
Specifies the default tabsize in characters. The default value is 8.
Specifies the default height of the textwindow in number of characters. The default value is 40.
Specifies the default width of the textwindow in number of characters. The default value is 80.
Specifies how many cursor up/down events with the same serial number should be ignored.
Keybindings in Insert mode
Keybindings in Overwrite mode
Each command has the format "<Menu entry> <Tab> <Command string>\n\". Here is a short example with some useful commands. It may be placed in the users "~/.Xdefaults" file:
editor*commands: Make make\n\
CC cc $stripped.c -o $stripped
editor*pipes: Date date
The following variables are set and may be used in a command:
$selection: Filename of the temporary file containing the current selection
$tempfile : Filename of the temporary saved text file
$filename : Filename of the edited file
$stripped : Stripped Filename (without postfix and path) of the edited file
DISPLAY
to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
<LIBDIR>/X11/app-defaults/editor - specifies required resources
<LIBDIR>/X11/editor/editor.help - help text
<LIBDIR> stands for "/usr/lib" (X11 Release 5 or earlier) or "/usr/X11R6/lib" (since X11 Release 6).