Re: Pausing compilation in GForth
Anton Ertl <anton-8NJIiSa5LzB3ZGU3T6kWFyEcasqEdqbRs2V0tQ3P5b8@public.gmane.org> Mon, 22 Mar 2021 15:11:21 +0100
| Newsgroups | gmane.comp.lang.forth.gforth |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 22, 2021 at 01:11:28PM +0100, paul.ortais-WGBUbHxT2D9Wk0Htik3J/[email protected] wrote: > Hello all, > > I am looking for any method to pause compilation, so that it goes on by > smaller chunks and I have the time to examine successes and errors, then > release it for one more screen etc. > > Tried to insert prompts like key, key?, ekey? so that I hit eg the > spacebar or down arrow to release it and run, but that seems to > interfere with the flow, and halt it. > > Idea anyone? I think what you want is more.fs: Start Gforth with, e.g. gforth more.fs myfile.fs and it will stop and prompt after outputting a screenful, and any key will get you the next screen. It works in Gforth 0.7, but is broken at the moment in the development version. - anton