XEDIT(1X11) COMMAND REFERENCE XEDIT(1X11) NAME xedit - simple text editor for X SYNOPSIS xedit [ -toolkitoption ...] [ filename ] This is a user-contributed client. DESCRIPTION The editor provides a window consisting of the following 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. 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. << 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 Printed 3/22/89 1
XEDIT(1X11) COMMAND REFERENCE XEDIT(1X11) 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. OPTIONS The xedit editor accepts all of the standard X Toolkit command line options (see X(1x11)), plus the commands listed here. filename 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, xedit lets you load a file or create a new file after it has started up. X DEFAULTS For xedit, the available class identifiers are: ButtonBox Command Scrollbar Text For xedit, the available name identifiers are: All Edit EditWindow Jump Load MessageWindow More Quit Replace Save Printed 3/22/89 2
XEDIT(1X11) COMMAND REFERENCE XEDIT(1X11) Undo xedit For xedit, the available resources are: EnableBackups Specifies that, when edits made to an existing file are saved, xedit is to copy the original version of that file to file.BAK before it saves the changes. If the value of this option is specified as off, a backup file is not created. 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. For information about the format of the geometry specification, see X(1x11). 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 Each key specification assigns an editor command to a named key and/or mouse combination and has the format: Printed 3/22/89 3
XEDIT(1X11) COMMAND REFERENCE XEDIT(1X11) key: function key 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. For more information about specifications in the .XtActions file, see X(1x11). FILES ~/.XtActions /usr/lib/X11/.XtActions CAVEATS 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. It is not clear how to select a line number for the Jump command. The string searches don't work properly. SEE ALSO X(1x11), xrdb(1x11) Printed 3/22/89 4
%%index%% na:336,84; sy:420,253; de:673,2201;3282,1051; op:4333,1076;5817,2516;8741,383; fi:9124,159; ca:9283,417; se:9700,152; %%index%%000000000151