Function Reference
— Built-in Function: val = PS1 ()
— Built-in Function: old_val = PS1 (new_val)

Query or set the primary prompt string. When executing interactively, Octave displays the primary prompt when it is ready to read a command.

The default value of the primary prompt string is "\s:\#> ". To change it, use a command like

          octave:13> PS1 ("\\u@\\H> ")

which will result in the prompt ‘boris@kremvax> ’ for the user ‘boris’ logged in on the host ‘kremvax.kgb.su’. Note that two backslashes are required to enter a backslash into a double-quoted character string. See Strings.

See also: PS2 PS4