Next: , Previous: Full Face, Up: Faces


2.5.4 Command prompt expansion

The default command prompt displayed is friendly but rather uninformative. This can be changed.

— Variable: thud-prompt

A string that can is used by format-prompt as its template.

— Procedure: format-prompt

Return a string made by formatting thud-prompt. Most characters are copied without change, the exception being %c is expanded to be the current cycle number, and %s to be the scope.

          (set! thud-prompt "[%s] %c > ")
          (format-prompt) => "[/a/b/c/] 42 > "

Newlines and other Guile-standard backslash-introduced characters are accepted (basically, anything that can be read as part of a string).