1.6 Repeating and editing input

1.6.1 Keyboard shortcuts

Note that you can use a some common keystrokes to move around the window besides the cursor keys:

Ctrl+A
If the insertion cursor is after the prompt, move it to the start of the current input. Otherwise move it to the beginning of the line.

Ctrl+E
If the insertion cursor is after the prompt, move it to the end of the buffer. Otherwise move it to the end of the line.

Ctrl+U
If the insertion cursor is after the prompt, delete the current input (same as the Clear button). Otherwise do nothing.

Ctrl+G
Abandon the current input, saving it on the history (same as the Abandon button).

Ctrl+K
If the insertion cursor is after the prompt, cut from the insertion cursor to the end of the input. Otherwise do nothing.

Ctrl+D
If the insertion cursor is after the prompt, delete the character to the right of the insertion cursor. If typing input to the standard input of an evaluating expression, and the insertion cursor is at the start of the last line, send an end-of-file indication to that stream. Otherwise do nothing.

Ctrl+B
Move the insertion cursor back one character (same as the left arrow key).

Ctrl+F
Move the insertion cursor forward one character (same as the right arrow key).

Ctrl+N
Move the insertion cursor to the next line (same as the down arrow key).

Ctrl+P
Move the insertion cursor to the previous line (same as the up arrow key).

Ctrl+X
An accelerator for the Edit > Cut menu item. Text before the current prompt may not be cut.

Ctrl+C
An accelerator for the Edit > Copy menu item.

Ctrl+V
An accelerator for the Edit > Paste menu item. Text may not be pasted before the current prompt.

Ctrl+W
A synonym for Ctrl+X.

Ctrl+Y
A synonym for Ctrl+V.

Shift+cursor keys

Move cursor, selecting text between start and end point.

Delete
An accelerator for the Edit > Delete menu item.

Alt+P
Replace the input with the previous history item (same as the Previous button).

Alt+N
Replace the input with the next history item (same as the Next button).

Tab
If the insertion cursor is after the prompt, complete the preceding item. If the item begins with a ", treat it as a file name; otherwise treat it as an identifier. If the insertion cursor is before the prompt, do nothing.

Return
If the insertion cursor is after the prompt, evaluate the current input. If the current input is not a complete top-level declaration, ending in a semicolon, do nothing. If the insertion cursor is before the prompt, copy the current line (excluding any prompt) to the end of the buffer and evaluate the current input.

Ctrl+Return, Ctrl+O, Ctrl+J (line feed)

Insert a new line without evaluating the input.

Alt+<
Move the insertion cursor to the start of the listener.

Alt+<
Move the insertion cursor to the end of the listener.

Ctrl+L
Redraw the display.

Also, double-clicking selects an entire word or line, respectively.


MLWorks User Guide (UNIX version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker