|GNU Octave Manual Version 3|
by John W. Eaton, David Bateman, Søren Hauberg
Paperback (6"x9"), 568 pages
RRP £24.95 ($39.95)
33.4.4 Cursor Motion
The following commands allow you to position the cursor.
- Move back one character.
- Move forward one character.
- Delete the character to the left of the cursor.
- Delete the character underneath the cursor.
- Move forward a word.
- Move backward a word.
- Move to the start of the line.
- Move to the end of the line.
- Clear the screen, reprinting the current line at the top.
- Undo the last thing that you did. You can undo all the way back to an empty line.
- Undo all changes made to this line. This is like typing the `undo' command enough times to get back to the beginning.
The above table describes the most basic possible keystrokes that you need in order to do editing of the input line. On most terminals, you can also use the arrow keys in place of C-f and C-b to move forward and backward.
Notice how C-f moves forward a character, while M-f moves forward a word. It is a loose convention that control keystrokes operate on characters while meta keystrokes operate on words.
clc will allow you to clear the screen from within
- Built-in Function: clc ()
- Built-in Function: home ()
- Clear the terminal screen and move the cursor to the upper left corner.
|ISBN 095461206X||GNU Octave Manual Version 3||See the print edition|