gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pausing compilation in GForth


From: paul . ortais
Subject: Re: Pausing compilation in GForth
Date: Mon, 22 Mar 2021 18:59:08 +0100
User-agent: Roundcube Webmail/1.4.6

Thank you Anton, for your quick answer,
I didn't think to this, because I don't want the whole screen to be refreshed.

My screen is 270 columns wide (and 68 lines), and during the compilation I build pseudo-graphic structures in columns >80, and of course I want to keep them while the comiler run over some twenty screens.

So, I only have <80 columns source lines, which is comfortable. I want a max 65 lines to compile then check the result in progress on the rigtht side. Simulating a sort of two-screen display, or a source and target one.

when I am done checking and want to resume compiling, I wipe the blackboard at left like:
0 0 at-xy 65 0 do 79 0 do space loop loop and resume compilation. Maybe there are Lmargin and Rmargin tricks there... Well, had I a magic wand :-) Paul
Le 2021-03-22 15:11, Anton Ertl a écrit :

On Mon, Mar 22, 2021 at 01:11:28PM +0100, paul.ortais@aida-sea.com 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]