Hamilton LaboratoriesHamilton C shell 2012User guideLanguage reference

Command line editing

Oregon Coast

Command line editing
Previous | Next

Topics

Usage
See also

Usage

If you don't have an Alt key, use Ctrl-Shift instead.

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 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 of these references that failed. If already at the first entry, the command line is highlighted in bright red.

Down one command line in the history list. If already at the latest entry, the command line is highlighted in bright red.

One character left.

One character right.

Ctrl-

Up one row on the screen if the command is long enough that it runs over a row.

Ctrl-

Down one row on the screen.

Ctrl-

Backup word.

Ctrl-

Forward word.

Ctrl-Backspace

Delete preceding word.

Alt-Home

Delete all preceding characters on the command line.

Alt-End

Delete all following characters.

Alt-

Delete up one row on the screen if the command runs over a row.

Alt-

Delete down one row.

Alt-

Delete preceding word.

Alt-

Delete next 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.

Page Up

Backup to one past the last history reference. (Repeatedly typing Page Up, then Enter is a convenient way of picking up a whole series of commands from history.)

Page Down

Forward to the newest entry in the history list.

Esc

Clear the command line.

See also

History recall
Wildcarding
histchars variable
Tutorial: History
Tutorial: Wildcarding
Tutorial: Filename completion
Tutorial: Command line editing

Previous | Next

Getting started with Hamilton C shell

Hamilton C shell, as it first wakes up.

Getting started with Hamilton C shell

A first few commands.

You can set the screen colors to your taste.

You can set the screen colors to your taste.