Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xedit(1X) — Ultrix-32 3.1 VAX / UWS 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

X(1X)

dxwm(1X)

xedit(1X)

Name

xedit − X Toolkit-based text editor

Syntax

xedit [ options ] [ file ]

Arguments

Specifies the file that is to be loaded during startup.  If a file is not specified, xedit lets you load a file or create a new file after it has started up. 

Description

The xedit text editor is an X Toolkit-based window-oriented text editor.  At startup, xedit provides a window that consists of the following three areas:

Commands MenuLists editing commands (for example, Undo or Search). 

Message WindowDisplays xedit messages.  In addition, this window can be used as a scratch pad. 

Edit WindowDisplays the text of the file that you are editing or creating. 

Options

−bd color Specifies the color of the window’s border (color displays only).  The default is black. 

−bg color Specifies the color of the window’s background (color displays only).  The default is white. 

−bw pixels Specifies the width (in pixels) of the window’s border. 

−d dispname Specifies the display screen on which xedit displays its window.  If the display option is not specified, xedit uses the display screen specified by your DISPLAY environment variable.  The display option has the format hostname:number.  Using two colons (::) instead of one (:) indicates that DECnet is to be used for transport.  The default is :0.  For more information, see X(.).

−display dispname This option is the same as the −d option. 

−fg color Specifies the color of the text (color displays only).  The default is black. 

−fn font Specifies the font.  The default is 6x10. 

−geometry Specifies the width, length, and location of the xedit window.  If the geometry option is not specified, xedit uses default values.  The geometry option has the format =[width][xlength][x][y].  For more information about the screen coordinate system, see X(.).

−n name Specifies the name that is to replace the program name. 

−rv Reverses the default color values (for example, black becomes white and white becomes black).  The default is on. 

−t title Specifies the title to be listed in the main window’s title bar. 

Commands

QuitQuits the current editing session.  If any changes have not been saved, xedit displays a warning message and allows you to save the file. 

SaveStores a copy of the original, unedited file in file.BAK.  Then, overwrites the original file with the edited contents. 

EditAllows the text displayed in the Edit window to be edited. 

LoadLoads the specified file and displays it in the Edit window. 

UndoUndoes the last edit only. 

MoreUndoes each edit previous to the last edit, which must first be undone with the Undo command. 

JumpAdvances 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. 

ReplaceReplaces the last specified 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. 

AllRepositions 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. 

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. 

X Defaults

The xedit application reads the .Xdefaults file during startup and uses the appropriate resource specification to customize the appearance or characteristics of its displayed xedit window.  The format for a resource specification in the .Xdefaults file is: [name.]resource:  value

nameSpecifies the application name or, in the case of toolkit-based applications, the name string that restricts the resource assignment to that application or to a component of an application.  If this argument is not specified, the resource assignment is globally available to all X applications. 

resourceSpecifies the X resource. 

valueSpecifies the value that is to be assigned to the resource. 

In most cases, the period (.) delimiter should be replaced by an asterisk (*).  For more information, see X(.).

Because each toolkit-based application can consist of a combination of widgets (for example, command buttons and a scroll bar), you can form the name string by adding widget class and name identifiers to the string.  For further information about adding class and name identifiers, see X(.).

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
Undo
xedit

For xedit, the available resources are:

EnableBackupsSpecifies 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. 

backgroundSpecifies the background color to be displayed in command buttons.  The default is white. 

borderSpecifies the border color of the xedit window. 

borderWidthSpecifies the border width, in pixels, of the xedit window. 

fontSpecifies the font displayed in the xedit window. 

foregroundSpecifies the foreground color of the xedit window.  The default is black. 

geometrySpecifies 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 OPTIONS. 

internalHeightSpecifies the internal horizontal padding (spacing between text and button border) for command buttons. 

internalWidthSpecifies 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, the following resource specification must be placed in your .Xdefaults file. 

text.EventBindings:     .XtActions

Each key specification assigns an editor command to a named key and/or mouse combination and has the format: key:function

keySpecifies the key or mouse button that is used to invoke the named function. 

functionSpecifies the function to be invoked when the named key is pressed. 

For more information about specifications in the .XtActions file, see X(.).

Files

~/.Xdefaults
~/.XtActions

See Also

X(1X), dxwm(1X)

Commands

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026