Function usage:
PROMPT(text)
Command usage:
/PROMPT [-aattrs] [-p] text
Sets the prompt for the current socket to text, replacing any existing prompt.
Command options:
-aattrs
-p
@{attr}
" strings within text
as commands to set attributes
inline.
See decode_attr().
/prompt is most useful when called from a PROMPT hook, like this:
/def -h"PROMPT *> " catch_prompt = /test prompt({*})Then, any text that ends in ">" without a newline will be made the prompt.
For a more sophisticated example, see "status line".