6.29.1 Text interpreter status

In interactive usage Gforth shows the status after processing each line. The status consists of the “prompt” behind the end of the output of the words on the line and optionally a status bar at the bottom (on by default if the terminal is a colour terminal).

The prompt shows the current text interpreter state (ok (interpretation), compiling, or postponing) and the number of items on the data stack (nothing shown if empty) and the FP stack (nothing shown if empty). E.g., if there are two items on the data stack and one item on the FP stack, 2 f:1 is shown.

The status bar is in blue for interpretation, magenta for compilation, and red for postponing state. By default it shows the contents of base in decimal (not shown when the base is decimal), the number of items on the data stack and the top items of the data stack, the number of items on the FP stack, and the top items on the FP stack, the search order and the current wordlist. What is shown can be changed by changing the contents of status-xts, but that is currently not documented, apart from turning the status bar off completely:

-status ( ) gforth-1.0

Turn off the status bar at the bottom of the screen

+status ( ) gforth-1.0 “plus-status”

Turn on the status bar at the bottom of the screen