2.4.6 Customizing readline

Octave uses the GNU Readline library for command-line editing and history features. Readline is very flexible and can be modified through a configuration file of commands (See the GNU Readline library for the exact command syntax). The default configuration file is normally ~/.inputrc.

Octave provides two commands for initializing Readline and thereby changing the command line behavior.

: readline_read_init_file (file)

Read the readline library initialization file file.

If file is omitted, read the default initialization file (normally ~/.inputrc).

See Readline Init File in GNU Readline Library, for details.

See also: readline_re_read_init_file.

: readline_re_read_init_file ()

Re-read the last readline library initialization file that was read.

See Readline Init File in GNU Readline Library, for details.

See also: readline_read_init_file.

© 1996–2020 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/v6.3.0/Customizing-readline.html