-->

Previous | Table of Contents | Next

Page 126


                                Toggle class

                          .

                          .

                          .

                          Label namesLabel

                          List namesList

                          Label constraintLabel

                          List constraintList

                          Form valueForm

                          Label valueLabel

                          Text valueText

                          Box commandBox

                          Command setFile

                          Command save

                          Command apply

                          Command saveAndApply

                          Command cancel

                          Grip grip

              Grip grip

ENVIRONMENT

DISPLAY To get the default host and display number
XENVIRONMENT To get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.

FILES

<XRoot>/lib/X11/app-defaults/Editres specifies required resources.

SEE ALSO

X(1), xrdb(1), Athena Widget Set

RESTRICTIONS

This is a prototype. There are lots of nifty features I would love to add, but I hope this will give you some ideas about what a resource editor can do.

AUTHOR

Chris D. Peterson (formerly MIT X Consortium)

X Version 11 Release 6

elvis, ex, vi, view, input

elvis, ex, vi, view, input—The editor

SYNOPSIS


elvis [flags][+cmd][files...]

DESCRIPTION

elvis is a text editor that emulates vi/ex.

On systems which pass the program name as an argument, such as UNIX and Minix, you may also install elvis under the names ex, vi, view, and input. These extra names would normally be links to elvis; see the ln shell command.

Page 127

When elvis is invoked as vi, it behaves exactly as though it was invoked as elvis. However, if you invoke elvis as view, then the readonly option is set as though you had given it the -R flag. If you invoke elvis as ex, then elvis will start up in the colon command mode instead of the visual command mode, as though you had given it the -e flag. If you invoke elvis as input or edit, then elvis will start up in input mode, as though the -i flag was given.

OPTIONS

-r To the real vi, this flag means that a previous edit should be recovered. elvis, though, has a separate program, called elvrec(1), for recovering files. When you invoke elvis with -r, elvis will tell you to run elvrec.
-R This sets the readonly option, so you won't accidentally overwrite a file.
-s This sets the safer option, which disables many potentially harmful commands. It has not been rigorously proven to be absolutely secure, however.
-t tag This causes elvis to start editing at the given tag.
-m [file] elvis will search through file for something that looks like an error message from a compiler. It will then begin editing the source file that caused the error, with the cursor sitting on the line where the error was detected. If you don't explicitly name a file, then errlist is assumed.
-e elvis will start up in colon command mode.
-v elvis will start up in visual command mode.
-i elvis will start up in input mode.
-w winsize Sets the window option's value to winsize.
+command or -c command If you use the +command parameter, then after the first file is loaded, command is executed as an EX command. A typical example would be elvis +237 foo, which would cause elvis to start editing foo and then move directly to line 237. The -c command variant was added for UNIX SysV compatibility.

FILES

/tmp/elv* During editing, elvis stores text in a temporary file. For UNIX, this file will usually be stored in the /tmp directory, and the first three characters will be elv. For other systems, the temporary files may be stored someplace else; see the version-specific section of the documentation.
tags This is the database used by the :tags command and the -t option. It is usually created by the ctags(1) program.
.exrc or elvis.rc On UNIX-like systems, a file called .exrc in your home directory is executed as a series of ex commands. A file by the same name may be executed in the current directory, too. On non-UNIX systems, .exrc is usually an invalid filename; there, the initialization file is called elvis.rc instead.

ENVIRONMENT

TERM This is the name of your terminal's entry in the termcap or terminfo database. The list of legal values varies from one system to another.
TERMCAP Optional. If your system uses termcap, and the TERMCAP variable is unset, then elvis will read your terminal's definition from /etc/termcap. If TERMCAP is set to the full pathname of a file (starting with a /) then elvis will look in the named file instead of /etc/termcap. If TERMCAP is set to a value which doesn't start with a /, then its value is assumed to be the full termcap entry for your terminal.
TERMINFO Optional. If your system uses terminfo, and the TERMINFO variable is unset, then elvis will read your terminal's definition from the database in the /usr/lib/terminfo database. If TERMINFO is set, then its value is used as the database name to use instead of /usr/lib/terminfo.
LINES, COLUMNS Optional. These variables, if set, will override the screen size values given in the termcap/terminfo for your terminal. On windowing systems such as X, elvis has other ways of determining the screen size, so you should probably leave these variables unset.
EXINIT Optional. This variable can hold EX commands which will be executed instead of the .exrc file in your home directory.

Previous | Table of Contents | Next