xedit(1) X Version 11 (26 October 1988) xedit(1)
NAME
xedit - simple text editor for X
SYNTAX
xedit [ -toolkitoption ...] [ filename ]
OPTIONS
The xedit accepts all of the standard X Toolkit command-line
options (see X(1), as well as the following:
filename
Specifies the file to load during start-up. This file
is the file you can edit. If you do not specify a file,
xedit lets you load a file or create a new file after
it starts up.
DESCRIPTION
The edit window contains the following three areas:
Commands Menu 25
Lists editing commands (for example, Undo or Search).
Message Window
Displays xedit messages. In addition, you can use this
window as a scratch pad.
Edit Window
Displays the text of the file you are editing or
creating.
COMMANDS
Quit 25
Quits the current editing session. If you haven't saved
any changes, xedit displays a warning message and lets
you to save the file.
Save
Stores a copy of the original, unedited file in
file.BAK. Then overwrites the original file with the
edited contents.
Edit
Edits the text displayed in the Edit window.
Load
Loads the specified file and displays it in the Edit
window.
Undo
Undoes the last edit only.
More
Page 1 (printed 10/4/89)
xedit(1) X Version 11 (26 October 1988) xedit(1)
Undoes each edit previous to the last edit, which you
must first undo with the Undo command.
Jump
Advances the cursor from the beginning of the file to
the text line that corresponds to the selected line
number.
<< Searches from the cursor back to the beginning of the
file for the string entered in the Search input box. If
you do not enter a string in the Search input box, xedit
automatically copies the last string that you selected
from any X application into the Search input box and
searches for that string.
Search >>
Searches from the cursor forward to the end of the file
for the string entered in the search input box. If you
do not enter a string in the Search input box, xedit
automatically copies the last string that you selected
from any X application into the Search input box and
searches for that string.
Replace
Replaces the last searched-for string with the string
specified in the Replace input box. If you haven't
searched for a string previously, this command searches
from the insert cursor to the end of the file for the
next occurrence of the search string and highlights it.
All Repositions the cursor at the beginning of the file and
replaces all occurrences of the search string with the
string specified in the Replace input box.
X DEFAULTS
For xedit, the available class identifiers are as follows:
ButtonBox
Command
Scrollbar
Text
For xedit, the available name identifiers are:
All
Edit
EditWindow
Jump
Load
MessageWindow
More
Quit
Page 2 (printed 10/4/89)
xedit(1) X Version 11 (26 October 1988) xedit(1)
Replace
Save
Undo
xedit
For xedit, the available resources are:
EnableBackups
Specifies that, when edits made to an existing file are
saved, xedit copies the original version of that file to
file.BAK before it saves the changes. If you specify
the value as off, no backup file is created.
background
Specifies the background color for command buttons. The
default is "white."
border
Specifies the border color of the xedit window.
borderWidth
Specifies the border width of the xedit window in
pixels.
font
Specifies the font displayed in the xedit window.
foreground
Specifies the foreground color for the xedit window.
The default is "black."
geometry
Specifies the default geometry (window size and screen
location) for the xedit window. For information about
the format of the geometry specification, see X(1).
internalHeight
Specifies the internal horizontal padding (spacing
between the text and button border) for command buttons.
internalWidth
Specifies the internal vertical padding (spacing between
the text and button border) for command buttons.
KEY BINDINGS
Each specification included in the .XtActions file modifies
a key setting for the editor that xedit uses. When defining
key specifications, you must use the following resource
specification:
text.EventBindings: .XtActions
Page 3 (printed 10/4/89)
xedit(1) X Version 11 (26 October 1988) xedit(1)
Each key specification assigns an editor command to a named
key and mouse combination and has the format:
key: function
key Specifies the key or mouse button used to
invoke the named function.
function Specifies the function to invoke when the
named key is pressed.
For more information about specifications in the .XtActions
file, see X(1).
FILES
~/.XtActions
/usr/lib/X11/.XtActions
RESTRICTIONS
Large numbers of certain edit functions (for example, Undo
or More) tend to degrade performance over time. If there is
a noticeable decrease in response time, save and reload the
file.
You cannot select a line number for the Jump command.
The string searches do not work properly.
SEE ALSO
X(1)
xrdb(1)
COPYRIGHT
Copyright 1988, Digital Equipment Corporation.
Page 4 (printed 10/4/89)