Skip to content

__PS4__

builtin · libnexusinterp/parse-tree/pt-eval-proprietary.cc

: val = __PS4__ ()
: old_val = __PS4__ (new_val)
: old_val = __PS4__ (new_val, "local")

Query or change the string printed in front of each line when command echoing is active.

With no argument the current prefix is returned; given new_val the prefix is replaced and the previous value is returned. The default prefix is "+ ". See ‘Diary and Echo Commands’, for how echoing works.

Used with the "local" keyword inside a function, the prefix is set only for that function and its callees, and the former value is restored when the function returns.