Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xedit(1X) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

X(1X)

xrdb(1X)




xedit(1X) xedit(1X)
NAME xedit - edits text files SYNOPSIS xedit [toolkit-option]... [file] DESCRIPTION xedit is a simple text editor that allows you to make changes to text in the specified file or to create a new file into which the text that you type is stored. Options The xedit command accepts all the standard X Toolkit command-line options, as described in X(1X), as well as the file argument, which specifies the file to load during startup. If a file is not specified, xedit lets you load a file or create a new file after it has started up. The xedit window The xedit command provides a window that consists of these four areas: Commands menu This area provides a set of menu items as buttons that let you exit from xedit, save the file, or load a new file into the edit area. Message area The area displays xedit messages. In addition, you can use this window as a scratch pad. Filename display This area displays the name of the file currently being edited and whether this file is Read-Write or Read Only. Edit area This area displays the text of the file that you are editing or creating. Using xedit The Athena Text widget is used for the three areas of this application that allow text input: the message area, filename display, and edit area. The characters that you type go to the Text widget that the pointer is currently over. If the pointer is not over a Text widget, pressing a key has no effect. This is also true for the special key combinations that popup dialog widgets, so typing CONTROL-S in the filename display area enables searching in that widg- et, not the edit area. November, 1990 1



xedit(1X) xedit(1X)
Both the message area and the edit area create a scrollbar if the text is too large to fit. By default, horizontal scrolling is not allowed, but you can turn it on through the Text widget's resources. See Athena Widget Set - C Language Interface for the exact resource definition. Commands The commands area provides these buttons: Quit Quits the current editing session. If any changes have not been saved, xedit displays a warning mes- sage and allows you to save the file. Save Stores a copy of the original, unedited file in file.BAK. It then overwrites the original file with the newly edited contents. Load Loads the specified file and displays it in the edit area. Resources For xedit, these are the available resources: backupNamePrefix (Class BackupNamePrefix) Specifies a string that is to be prepended to the backup filename. The default is that no string is prepended. backupNameSuffix (Class BackupNameSuffix) Specifies a string that is to be appended to the backup filename. The default is to append the string .BAK. enableBackups (Class EnableBackups) Specifies that when you save edits to an existing file, xedit is to copy the original version of that file to <prefix>file<suffix> before it saves the changes. The default value for this resource is off, which means that no backups are created. Widget hierarchy To specify resources, you should know the hierarchy of the widgets that compose xedit. In the following notation, in- dentation indicates hierarchical structure. The widget class name is given first, followed by the widget instance name. Xedit xedit Paned paned Paned buttons Command quit Command save 2 November, 1990



xedit(1X) xedit(1X)
Command load Text filename Label bc_label Text messageWindow Label labelWindow Text editWindow Environment variables The xedit command uses these environment variables: DISPLAY Specifies the default host, display number, and screen. XENVIRONMENT Specifies the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. FILES /usr/lib/X11/app-defaults/Xedit Specifies required resources. NOTES Copyright 1988, Digital Equipment Corporation. Copyright 1989, Massachusetts Institute of Technology. See X(1X) for a full statement of rights and permissions. Author: Chris D. Peterson, MIT X Consortium LIMITATIONS There is no way to undo changes. SEE ALSO X(1X), xrdb(1X) Athena Widget Set - C Language Interface November, 1990 3

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