home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
hcshdemo.zip
/
csh-doc2.zip
/
KEYBIND.TXT
< prev
next >
Wrap
Text File
|
1994-03-15
|
6KB
|
132 lines
Filename Completion
Key Meaning
Alt-F or Ctrl-F Filename completion. Appending the
``*'' wildcard character onto the end,
use the previous word as a wildcard
pattern. If it matches a single file,
substitute it in with a space following.
If there were multiple matches, but they
all had some common front-part that
fully ``used up'' the pattern,
substitute in just that common front-
part and show it in the color specified
by the DUPLICATES variable (default is
green).
If substitution wasn't possible,
highlight the pattern in the color
specified by the MATCHFAIL variable
(default is bright red).
Alt-D or Ctrl-D Duplicate completions. Same
wildcarding, but if there are multiple
matches, show them all with a space
following. If there were no matches,
highlight the pattern in the color
specified by the MATCHFAIL variable.
<Tab> Next filename. Move one-by-one through
the list of matching filenames. After
the last, paste the original back in
place, highlighting with the MATCHFAIL
color, then continue, with the next Tab,
cycling through the list again. (To
type an ordinary tab character, use
Ctrl-<Tab>.)
Shift-<Tab> Previous filename. Same as Tab, but
cycling in reverse through the list.
Command Completion
Command completion lets you type just part of a previous
command and have the shell fill in the rest. As with
filename completion, if no match is found, color
highlighting as defined by the MATCHFAIL variable (default
is bright red) will be used. Consecutive depressions cause
the search to continue on back through the history list.
Key Meaning
Ctrl-<Enter> Search for the last command that starts
with the characters in the previous
word.
Alt-<Enter> Search for the last command that
contains the characters in the previous
word anywhere on the command line.
Command Line Editing
Key Meaning
<Enter> Accept the command as typed. Move to
the end (if not there already) and
carriage return to a new line.
<Home> Beginning of command line.
<End> End of command line.
<Up> Up one command in the history list.
Each time it's pressed, it displays the
preceding entry in the history list.
Any ``!...'' or ``%...'' history
references in the original text will
have been fixed up unless it was the
immediately preceding command and it had
one these references that failed. If
already at the first entry, the command
line is highlighted in bright red.
<Down> Down one command line in the history
list. If already at the latest entry,
the command line is highlighted in
bright red.
<Left> One character left.
<Right> One character right.
Ctrl-<Home> Move to the upper-leftmost character in
the current screenful if the command is
long enough that it actually wraps
across several screens.
Ctrl-<End> Move to the lower-rightmost character in
the current screenful.
Ctrl-<Up> Up one row on the screen if the command
is long enough that it runs over a row.
Ctrl-<Down> Down one row on the screen.
Ctrl-<Left> Backup word.
Ctrl-<Right> Forward word.
Alt-<Home> Delete all preceding characters on the
command line.
Alt-<End> Delete all following characters.
Alt-<Up> Delete up one row on the screen if the
command runs over a row.
Alt-<Down> Delete down one row.
Alt-<Left> Delete preceding word.
Ctrl-<Backspace>
Alt-<Right> Delete following word.
<Insert> Toggle insert/overstrike mode. When
inserting, the cursor is slightly
thicker.
Ctrl-<Insert> Insert the next word from the last
section of deleted text. When it
reaches the end of the deleted text, it
starts over.
Alt-<Insert> Insert all the rest of the previously
deleted text.
<PageUp> Backup to one past the last history
reference. (Repeatedly typing <PageUp>
<Enter> is a convenient way of picking
up a whole series of commands from
history.)
<PageDown> Forward to the newest entry in the
history list.
<Esc> Clear the command line.
Note: Users lacking separate arrow keys must press Ctrl-
Shift instead of Alt.