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 >
Text File  |  1994-03-15  |  6KB  |  132 lines

  1.                     Filename Completion
  2.  
  3.   Key               Meaning                              
  4.  
  5.   Alt-F or Ctrl-F   Filename completion.  Appending the
  6.                     ``*'' wildcard character onto the end,
  7.                     use the previous word as a wildcard
  8.                     pattern.  If it matches a single file,
  9.                     substitute it in with a space following.
  10.  
  11.                     If there were multiple matches, but they
  12.                     all had some common front-part that
  13.                     fully ``used up'' the pattern,
  14.                     substitute in just that common front-
  15.                     part and show it in the color specified
  16.                     by the DUPLICATES variable (default is
  17.                     green).
  18.  
  19.                     If substitution wasn't possible,
  20.                     highlight the pattern in the color
  21.                     specified by the MATCHFAIL variable
  22.                     (default is bright red).
  23.  
  24.   Alt-D or Ctrl-D   Duplicate completions.  Same
  25.                     wildcarding, but if there are multiple
  26.                     matches, show them all with a space
  27.                     following.  If there were no matches,
  28.                     highlight the pattern in the color
  29.                     specified by the MATCHFAIL variable.
  30.  
  31.   <Tab>             Next filename.  Move one-by-one through
  32.                     the list of matching filenames.  After
  33.                     the last, paste the original back in
  34.                     place, highlighting with the MATCHFAIL
  35.                     color, then continue, with the next Tab,
  36.                     cycling through the list again.  (To
  37.                     type an ordinary tab character, use
  38.                     Ctrl-<Tab>.)
  39.  
  40.   Shift-<Tab>       Previous filename.  Same as Tab, but
  41.                     cycling in reverse through the list.
  42.  
  43.  
  44.  
  45.                      Command Completion
  46.  
  47.  
  48. Command completion  lets you  type just  part of  a previous
  49. command and  have the  shell fill  in the  rest.    As  with
  50. filename  completion,   if  no   match   is   found,   color
  51. highlighting as  defined by  the MATCHFAIL variable (default
  52. is bright  red) will be used.  Consecutive depressions cause
  53. the search to continue on back through the history list.
  54.  
  55.   Key               Meaning                              
  56.  
  57.   Ctrl-<Enter>      Search for the last command that starts
  58.                     with the characters in the previous
  59.                     word.
  60.  
  61.   Alt-<Enter>       Search for the last command that
  62.                     contains the characters in the previous
  63.                     word anywhere on the command line.
  64.  
  65.  
  66.   
  67.                     Command Line Editing
  68.  
  69.  
  70.   Key               Meaning                              
  71.   <Enter>           Accept the command as typed.  Move to
  72.                     the end (if not there already) and
  73.                     carriage return to a new line.
  74.   <Home>            Beginning of command line.
  75.   <End>             End of command line.
  76.   <Up>              Up one command in the history list.
  77.                     Each time it's pressed, it displays the
  78.                     preceding entry in the history list.
  79.                     Any ``!...'' or ``%...'' history
  80.                     references in the original text will
  81.                     have been fixed up unless it was the
  82.                     immediately preceding command and it had
  83.                     one these references that failed.  If
  84.                     already at the first entry, the command
  85.                     line is highlighted in bright red.
  86.   <Down>            Down one command line in the history
  87.                     list.  If already at the latest entry,
  88.                     the command line is highlighted in
  89.                     bright red.
  90.   <Left>            One character left.
  91.   <Right>           One character right.
  92.   Ctrl-<Home>       Move to the upper-leftmost character in
  93.                     the current screenful if the command is
  94.                     long enough that it actually wraps
  95.                     across several screens.
  96.   Ctrl-<End>        Move to the lower-rightmost character in
  97.                     the current screenful.
  98.   Ctrl-<Up>         Up one row on the screen if the command
  99.                     is long enough that it runs over a row.
  100.   Ctrl-<Down>       Down one row on the screen.
  101.   Ctrl-<Left>       Backup word.
  102.   Ctrl-<Right>      Forward word.
  103.   Alt-<Home>        Delete all preceding characters on the
  104.                     command line.
  105.   Alt-<End>         Delete all following characters.
  106.   Alt-<Up>          Delete up one row on the screen if the
  107.                     command runs over a row.
  108.   Alt-<Down>        Delete down one row.
  109.   Alt-<Left>        Delete preceding word.
  110.                     Ctrl-<Backspace>
  111.   Alt-<Right>       Delete following word.
  112.   <Insert>          Toggle insert/overstrike mode.  When
  113.                     inserting, the cursor is slightly
  114.                     thicker.
  115.   Ctrl-<Insert>     Insert the next word from the last
  116.                     section of deleted text.  When it
  117.                     reaches the end of the deleted text, it
  118.                     starts over.
  119.   Alt-<Insert>      Insert all the rest of the previously
  120.                     deleted text.
  121.   <PageUp>          Backup to one past the last history
  122.                     reference.  (Repeatedly typing <PageUp>
  123.                     <Enter> is a convenient way of picking
  124.                     up a whole series of commands from
  125.                     history.)
  126.   <PageDown>        Forward to the newest entry in the
  127.                     history list.
  128.   <Esc>             Clear the command line.
  129.  
  130.   Note:  Users lacking separate arrow keys must press Ctrl-
  131.   Shift instead of Alt.
  132.