0 votes
by Gan Uesli Starling (120 points)
Unlike other Forths (Swift Forth, gForth, Win32Forth), CR seems to not cause a flush to string. So that when I...

." Please wait while slow code processes." CR

...that string appears on screen AFTER the slow code has finished. Which isn't helpful.

How do I get VFX Forth to flush a string buffer to screen immediately?

1 Answer

0 votes
by Gerald Wodni (1.1k points)
VFX is vectoring the IO through the GENIO system. So without knowing your OS, sourcecode or selected GENIO system, this question is hard to answer.
: slow ." start" 200 ms ." end" ; \ works as expected under lin64 using xterm.
ago by Gan Uesli Starling (120 points)
Am working mainly in VFX on Win-64. But my intent is to support plural systems. The same code for all. Hence my mention of those other Forths.

I have a test so that the code knows which Forth it's on. A workaround for VFX under WIN 32 and 64 would be most welcome.

Perhaps a delay in execution until after the text has displayed?
...