home *** CD-ROM | disk | FTP | other *** search
- ------------------------
- Edit Environment Command
- ------------------------
-
- Purpose: Allows current setting of a global environment variable to be
- modified using the IBM PC keypad.
-
- Format: EDENV [env_var]
-
-
- Remarks: This command is used to enable the current setting of a global
- environment variable to be easily modified. If 'env_var' is not
- specified, the default is PATH. When invoked, the current setting
- of the global environment variable is displayed. The IBM PC keypad
- may be used to edit the setting. The new setting is stored in the
- environment when the [Enter] key is pressed. If the new setting is
- null when the [Enter] key is pressed, the current value in the env-
- ironment is displayed and the program will exit.
-
-
- Action of special keys are defined as follows:
-
-
- [Left] - Move cursor one position to the left unless
- currently at the beginning of the string.
-
- [Space], [Right] - Move cursor one position to the right unless
- currently at the end of the string.
-
- [Up] - Move cursor to the first line of the string.
-
- [Down] - Move cursor to the last line of the string.
-
- [[Control] [Home] - Move the cursor to the beginning of the
- string. Use of the Control key is
- optional.
-
- [[Control] [End] - Move the cursor one position past the end
- of the string. Use of the Control key is
- optional.
-
- [Tab] - Move cursor to the right until next tab
- position or end of the string is reached.
- Tabs occur every 8th position.
-
- [Shift Tab] - Move cursor to the left until previous tab
- position or beginning of the string is
- reached.
-
- [Control Left] - Move cursor to the left until the previous
- drive/directory or beginning of the string
- is reached.
-
- [Control Right] - Move cursor to the right until the next
- drive/directory or end of the string is
- reached.
-
- [Ins] - Toggle INSERT mode. Initially INSERT mode
- is turned OFF. When INSERT mode is off,
- each character typed will replace the one
- at the current character position. An
- underline cursor is visible when INSERT
- mode is OFF. When INSERT mode is on, each
- character typed will be inserted at the
- current character position and any remaining
- characters will be shifted one position to
- the right. A half-block cursor is visible
- when INSERT mode is ON.
-
- [Del] - Deletes the character ( if any ) which
- currently appears directly above the cursor.
- Any characters to the right of the cursor
- are shifted left one position.
-
- [Bksp] - Deletes the character ( if any ) which
- currently appears to the left of the cursor.
- All characters from the current cursor
- position to the end of the string are
- shifted to the left one position.
-
- [Alt L] - Deletes all characters which currently appear
- to the left of the cursor.
-
- [Alt R] - Deletes the character which currently appears
- above the cursor and all characters to the
- right of the cursor.
-
- [[Control] PgUp] - Deletes an entire Drive/Directory string
- and any trailing semi-colon. The string
- deleted is the one which has one of it's
- characters directly above the cursor. The
- deleted string is placed in a paste buffer
- for recall by the [[Control] PgDn] key.
- Use of the Control shift key is optional.
-
- [[Control] PgDn] - Paste contents of paste buffer imediately
- in front of the current Drive/Directory
- string. A semi-colon will be added if
- necessary. Use of the Control shift key
- is optional.
-
- [Alt S] - Replaces the string with the current value
- of the PATH setting from the global environ-
- ment.
-
- [Esc] - Restore original value as on entry. Use
- after making a mistake to recall the environ-
- ment variable's original value.
-
- [Enter] - Update the global environment and quit the
- program.
-
-
-
- Notes: EDENV - Version 1.5 - December 31, 1987 - Bill Bovee
-
- o Includes routines adapted from:
-
- - SPMMLIB.PAS ( PC TECH Journal, Volume 4, No. 3 )
-
- - SETVAR.C ( by Dan Lewis )
-
- - BOOSTERS ( by George F. Smith )
-
-