P2 Taqoz 2.8: Two little Helpers: undo and lastx
Christof Eb.
Posts: 1,213
in Forth
Hi,
perhaps this is helpful or inspiring for somebody?
It might be not the most elegant way to do that, but it seems to work....
The background poll-task "showStack" spies on the data stack, displays it all the time at the top of the terminal window (Teraterm) and preserves the previous state of the stack. "Previous state" means: before the last input line.
"undo" will give you back the complete previous stack content.
"lastx" will restore the previous tos on top of the actual stack.
The ideas for those come from these nice HP calculators....
Have fun, Christof
zip
5K