Make stack display configurable
parent
a87fb04098
commit
4d7c6fe48b
|
@ -73,9 +73,15 @@ SYMBOL: error-hook
|
|||
] tabular-output
|
||||
] unless-empty ;
|
||||
|
||||
SYMBOL: display-stacks?
|
||||
|
||||
t display-stacks? set-global
|
||||
|
||||
: stacks. ( -- )
|
||||
display-stacks? get [
|
||||
datastack [ nl "--- Data stack:" title. stack. ] unless-empty
|
||||
retainstack [ nl "--- Retain stack:" title. stack. ] unless-empty ;
|
||||
retainstack [ nl "--- Retain stack:" title. stack. ] unless-empty
|
||||
] when ;
|
||||
|
||||
: prompt. ( -- )
|
||||
"( " in get auto-use? get [ " - auto" append ] when " )" 3append
|
||||
|
|
Loading…
Reference in New Issue