XEDIT(1) XEDIT(1)
NAME
xedit - simple text editor for X
SYNOPSIS
xedit [-toolkitoption ...] [filename]
OPTIONS
xedit accepts all the standard X Toolkit command line
options, plus:
filename specifies the file that is to be loaded during
start-up. This is the file that will be edited. If a
file is not specified, xedit lets you load a file or
create a new file after it has started up.
DESCRIPTION
xedit provides a window consisting of three areas:
Commands Menu
Lists editing commands (for example, Undo or
Search).
Message Window
Displays xedit messages. In addition, this window
can be used as a scratch pad.
Edit Window
Displays the text of the file that you are editing
or creating.
COMMANDS
Quit
Quits the current editing session. If any changes
have not been saved, xedit displays a warning
message and allows 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
Allows the text displayed in the Edit window to be
edited.
Load
Loads the specified file and displays it in the
Edit window.
Undo
Undoes the last edit only.
- 1 -
XEDIT(1) XEDIT(1)
More
Undoes each edit previous to the last edit, which
must first be undone 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. The mouse selects the text that
should be searched.
Search <<
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 no
string has been previously searched for, 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:
ButtonBox
Command
Scrollbar
Text
- 2 -
XEDIT(1) XEDIT(1)
For xedit, the available name identifiers are:
All
Edit
EditWindow
Jump
Load
MessageWindow
More
Quit
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.
The default is true. If the value is specified as
false, a backup file is not created.
EditInPlace
specifies that the Save function will try to
directly overwrite the existing file when the
resource is set to true. The default value true
ensures that a file that does not have write
permission cannot be overwritten accidentally.
When the value is set to false, xedit writes the
changes to a temporary file, then moves the
temporary file over the original file. In effect,
this forces overwriting a nonwritable file. If
EditInPlace is false, it is wise to verify that
EnableBackUps is set to true.
BackupNamePrefix
specifies a string to be used as the filename
prefix for backup files. This resource is NULL by
default.
BackupNameSuffix
specifies a string to be used as the filename
suffix for backup files. This resource is set to
.BAK by default.
- 3 -
XEDIT(1) XEDIT(1)
If the concatenated length of the
prefix+filename+suffix is greater than the SYSTEM
V/68 or SYSTEM V/88 filename limit of 14
characters, xedit tries to truncate the filename
portion to the maximum length that will fit. Note
that if the combined length of the prefix and
suffix is greater than 13 characters, there will be
no room left in the backup filename for even one
character of the original filename, and an error
will result.
background
specifies the background color to be displayed in
command buttons. The default is white.
border
specifies the border color of the xedit window.
borderWidth
specifies the border width, in pixels, of the xedit
window.
font
specifies the font displayed in the xedit window.
foreground
specifies the foreground color of the xedit window.
The default is black.
geometry
specifies the geometry (window size and screen
location) to be used as the default for the xedit
window.
internalHeight
specifies the internal horizontal padding (spacing
between text and button border) for command
buttons.
internalWidth
specifies the internal vertical padding (spacing
between 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
- 4 -
XEDIT(1) XEDIT(1)
Each key specification assigns an editor command to a
named key and/or mouse combination and has the format:
key: function
where:
key 15
specifies the key or mouse button that is used to
invoke the named function.
function
specifies the function to be invoked when the named
key is pressed.
FILES
/.XtActions
~
/usr/lib/X11/.XtActions
SEE ALSO
xrdb(1)
RESTRICTIONS
Large numbers of certain edit functions (e.g., Undo or
More) tend to degrade performance over time. If there
is a noticeable decrease in response time, save and
reload the file.
- 5 -