-
Notifications
You must be signed in to change notification settings - Fork 3
Statusline
Lothar Schmidt edited this page Feb 9, 2022
·
4 revisions
An experimental status line display has now been hooked up to the "newquery$" word which is compiled from library during yoda launch. The status line may look like this:
yoda version 0.5.7 flags:fIs call:0 base:10 depth:3 rdepth:0 files:17 unresolved:0 bits:63 6 20 -5
The possibly more obscure item on statusline are described in the following rundown of its components:
-
yoda version 0.5.7
- evident, supposedly
-
flags:fIs
- enable/disable state of forwardsrefs, instant resolving and shell.
- Capitals represent enabled, lowercase letters indicate disabled.
- change state of forward references with with +f -f
- change state of instant resolving with with +i -i
- change state of shell with with +s -s
-
call:0
- call stack depth. Shown because yoda has no way to clear call stack without also wiping its vocabulary. In case of error or Ctrl-C is a new input interpreter simply stacked on top now. The more errors occur, the more will be on call stack. Use this as an indication for when you think it gets about time to restart yoda, for starting with a squeaky clean call stack again.
-
base:10
- evident
-
depth:3
- count of items on stack
-
rdepth:0
- count of items on return stack
-
files:17
- count of included files
- see by executing
files
-
unresolved:0
- unresolved words count
- see by executing
.unresolved
orwords
-
bits:63
- width of an integer in bits.
- Set in yoda.conf
-
6 20 -5
- A stack dump of the top max 9 stack items.
- Respects base, so status line may become too long for a single line with binary numbers or lots of large numbers with different radix.