Next: , Previous: Commands For Text, Up: Command Line Editing


2.4.4 Letting Readline Type For You

The following commands allow Octave to complete command and variable names for you.

<TAB>
Attempt to do completion on the text before the cursor. Octave can complete the names of commands and variables.
M-?
List the possible completions of the text before the cursor.

— Built-in Variable: completion_append_char

The value of completion_append_char is used as the character to append to successful command-line completion attempts. The default value is " " (a single space).

— Built-in Function: completion_matches (hint)

Generate possible completions given hint.

This function is provided for the benefit of programs like Emacs which might be controlling Octave and handling user input. The current command number is not incremented when this function is called. This is a feature, not a bug.