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