Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If this is a service economy, why is the service so bad?


devel / comp.lang.forth / Re: Gforth command-line problem

SubjectAuthor
* Gforth command-line problemdxforth
+- Re: Gforth command-line problemnone
`* Re: Gforth command-line problemAnton Ertl
 `* Re: Gforth command-line problemdxforth
  `* Re: Gforth command-line problemAnton Ertl
   `* Re: Gforth command-line problemdxforth
    `* Re: Gforth command-line problemAnton Ertl
     `* Re: Gforth command-line problemdxforth
      `* Re: Gforth command-line problemdxforth
       `* Re: Gforth command-line problemAnton Ertl
        `* Re: Gforth command-line problemdxforth
         `* Re: Gforth command-line problemAnton Ertl
          `* Re: Gforth command-line problemdxforth
           `* Re: Gforth command-line problemAnton Ertl
            `- Re: Gforth command-line problemdxforth

1
Gforth command-line problem

<u1dnas$1v7m3$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23237&group=comp.lang.forth#23237

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Gforth command-line problem
Date: Sat, 15 Apr 2023 18:30:18 +1000
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <u1dnas$1v7m3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 15 Apr 2023 08:30:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5957e659c2dd1f1b28df6cd11febc1fe";
logging-data="2072259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nf3bHFwCO/GaH25XlKPzG"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:Zj1Kqnpp6yjxSJRmIiTV4HoVh/U=
Content-Language: en-GB
 by: dxforth - Sat, 15 Apr 2023 08:30 UTC

Running Gforth 0.7.9_20200709 for Windows. Having problems with the script:

gforth ./job.fs -e "bye "

from: https://github.com/CharleyShattuck/myforth-arduino

It runs everything in job.fs and then stalls. Gforth accepts keystrokes but
nothing is echoed or executed. OTOH if I run:

gforth ./job.fs

the app completes and Gforth waits for input at which point I can type 'bye'.

The script was written for Gforth under Linux - I'm guessing an earlier version
as I have issues loading vtags.fs from the package. Immediate problem is why
Gforth hangs on the: -e "bye " Any suggestions/fixes?

Re: Gforth command-line problem

<nnd$02ab97a0$0620c751@34db00808e84f3ee>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23238&group=comp.lang.forth#23238

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
References: <u1dnas$1v7m3$1@dont-email.me>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$02ab97a0$0620c751@34db00808e84f3ee>
Organization: KPN B.V.
Date: Sat, 15 Apr 2023 10:46:59 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 17
Injection-Date: Sat, 15 Apr 2023 10:46:59 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1277
 by: none - Sat, 15 Apr 2023 08:46 UTC

In article <u1dnas$1v7m3$1@dont-email.me>, dxforth <dxforth@gmail.com> wrote:
>Running Gforth 0.7.9_20200709 for Windows. Having problems with the script:
>
> gforth ./job.fs -e "bye "

I tried this with a reasonable hello.frt and version 0.7.3.
It works as expected. So I guess that you're doing some
strange things in job.fs. (I do not expect changes into 0.7.9).

Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Gforth command-line problem

<2023Apr15.133201@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23239&group=comp.lang.forth#23239

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Sat, 15 Apr 2023 11:32:01 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 16
Message-ID: <2023Apr15.133201@mips.complang.tuwien.ac.at>
References: <u1dnas$1v7m3$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="d65c04fb64e906efe5cce5e42391f30c";
logging-data="2132628"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SoEKP9vmNu+VhjTXo4xmh"
Cancel-Lock: sha1:reNoubY303FdTsD3quLwQanm8oA=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sat, 15 Apr 2023 11:32 UTC

dxforth <dxforth@gmail.com> writes:
>Running Gforth 0.7.9_20200709 for Windows. Having problems with the script:
>
> gforth ./job.fs -e "bye "
>
>from: https://github.com/CharleyShattuck/myforth-arduino

There is no job.fs in the this directory and severl job.fs in its
subdirectories.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: Gforth command-line problem

<u1e4or$21hnc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23240&group=comp.lang.forth#23240

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Sat, 15 Apr 2023 22:19:39 +1000
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <u1e4or$21hnc$1@dont-email.me>
References: <u1dnas$1v7m3$1@dont-email.me>
<2023Apr15.133201@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 15 Apr 2023 12:19:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5957e659c2dd1f1b28df6cd11febc1fe";
logging-data="2148076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qGC7npD0BTIkfPeL9snWG"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:uUpcP9oCkuRp3PY5HWav/JfvAxI=
In-Reply-To: <2023Apr15.133201@mips.complang.tuwien.ac.at>
Content-Language: en-GB
 by: dxforth - Sat, 15 Apr 2023 12:19 UTC

On 15/04/2023 9:32 pm, Anton Ertl wrote:
> dxforth <dxforth@gmail.com> writes:
>> Running Gforth 0.7.9_20200709 for Windows. Having problems with the script:
>>
>> gforth ./job.fs -e "bye "
>>
>> from: https://github.com/CharleyShattuck/myforth-arduino
>
> There is no job.fs in the this directory and severl job.fs in its
> subdirectories.

Not sure what you mean. The script in question is here:

https://github.com/CharleyShattuck/myforth-arduino/blob/master/ATmega328p/c

Presumably it worked for the author. It fails for me as previously described.
AFAICS the only difference between us is Gforth.

Re: Gforth command-line problem

<2023Apr15.160429@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23241&group=comp.lang.forth#23241

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Sat, 15 Apr 2023 14:04:29 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 40
Message-ID: <2023Apr15.160429@mips.complang.tuwien.ac.at>
References: <u1dnas$1v7m3$1@dont-email.me> <2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="d65c04fb64e906efe5cce5e42391f30c";
logging-data="2193188"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+g/W+JpOQptnr2Fv/8ZKgZ"
Cancel-Lock: sha1:CcDzRROsVH6Vz3MfPStczOK0SIc=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sat, 15 Apr 2023 14:04 UTC

dxforth <dxforth@gmail.com> writes:
>On 15/04/2023 9:32 pm, Anton Ertl wrote:
>> dxforth <dxforth@gmail.com> writes:
>>> Running Gforth 0.7.9_20200709 for Windows. Having problems with the script:
>>>
>>> gforth ./job.fs -e "bye "
>>>
>>> from: https://github.com/CharleyShattuck/myforth-arduino
>>
>> There is no job.fs in the this directory and severl job.fs in its
>> subdirectories.
>
>Not sure what you mean. The script in question is here:
>
>https://github.com/CharleyShattuck/myforth-arduino/blob/master/ATmega328p/c

I tried to run job.fs from myforth-arduino/ATmega328p with Gforth
0.7.3 and 0.7.9_20230317.

It does not work with 0.7.3, because it does not find the word "c#",
which is not part of Gforth, but apparently also not defined by
myforth-arduino.

It does not work with 0.7.9_20230317, because it wants to treat HEADER
as a deferred word (it isn't in that version).

>Presumably it worked for the author. It fails for me as previously described.
>AFAICS the only difference between us is Gforth.

It's not clear which Gforth version he used, and makes use of
knowledge of the internals of the Gforth version he used, so this
looks like uncharted territory, and you can enjoy the freedom of
exploring it.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: Gforth command-line problem

<u1elju$23p57$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23242&group=comp.lang.forth#23242

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Sun, 16 Apr 2023 03:07:10 +1000
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <u1elju$23p57$1@dont-email.me>
References: <u1dnas$1v7m3$1@dont-email.me>
<2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me>
<2023Apr15.160429@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 15 Apr 2023 17:07:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5957e659c2dd1f1b28df6cd11febc1fe";
logging-data="2221223"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0QTJP8ogquh/5LHiXSfY7"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:zK9XWwRT+jN3qPRSV4J6K5AHWNE=
In-Reply-To: <2023Apr15.160429@mips.complang.tuwien.ac.at>
Content-Language: en-GB
 by: dxforth - Sat, 15 Apr 2023 17:07 UTC

On 16/04/2023 12:04 am, Anton Ertl wrote:
> dxforth <dxforth@gmail.com> writes:
>> On 15/04/2023 9:32 pm, Anton Ertl wrote:
>>> dxforth <dxforth@gmail.com> writes:
>>>> Running Gforth 0.7.9_20200709 for Windows. Having problems with the script:
>>>>
>>>> gforth ./job.fs -e "bye "
>>>>
>>>> from: https://github.com/CharleyShattuck/myforth-arduino
>>>
>>> There is no job.fs in the this directory and severl job.fs in its
>>> subdirectories.
>>
>> Not sure what you mean. The script in question is here:
>>
>> https://github.com/CharleyShattuck/myforth-arduino/blob/master/ATmega328p/c
>
> I tried to run job.fs from myforth-arduino/ATmega328p with Gforth
> 0.7.3 and 0.7.9_20230317.
>
> It does not work with 0.7.3, because it does not find the word "c#",
> which is not part of Gforth, but apparently also not defined by
> myforth-arduino.

Appears unimportant so I commented out:

: words dictionary begin c@p while
drop ( c# @ 60 #- invert -if cr then drop ) .word repeat drop ;

> It does not work with 0.7.9_20230317, because it wants to treat HEADER
> as a deferred word (it isn't in that version).

Ditto:

\ include ../vtags.fs use-tags

>> Presumably it worked for the author. It fails for me as previously described.
>> AFAICS the only difference between us is Gforth.
>
> It's not clear which Gforth version he used, and makes use of
> knowledge of the internals of the Gforth version he used, so this
> looks like uncharted territory, and you can enjoy the freedom of
> exploring it.

With the two previous issues out of the way, it compiles through to the end
only to choke on: -e bye

Replacing 'bye' with 'xxx' results in return to OS - not pretty but works.
'quit' returns control to gforth. 'abort' causes gforth to hang same as 'bye'.

Re: Gforth command-line problem

<u1i6b9$2o13t$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23243&group=comp.lang.forth#23243

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Mon, 17 Apr 2023 11:11:06 +1000
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <u1i6b9$2o13t$1@dont-email.me>
References: <u1dnas$1v7m3$1@dont-email.me>
<2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me>
<2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me>
<2023Apr16.181551@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Apr 2023 01:11:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9e0e6919523d65f1f90dcc292b948667";
logging-data="2884733"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19R5VWMb6nhpablMvucwKyy"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:5ViqE4462qp6JKAd9PLsaQhG5AU=
In-Reply-To: <2023Apr16.181551@mips.complang.tuwien.ac.at>
Content-Language: en-GB
 by: dxforth - Mon, 17 Apr 2023 01:11 UTC

On 17/04/2023 2:15 am, Anton Ertl wrote:
> ...
> With that change and the change above, and with gforth 0.7.9_20230317
> I get:
>
> [~/tmp/myforth-arduino/ATmega328p:138749] ~/gforth/gforth -p .:~/gforth ./job.fs -e "bye "
>
> job.fs:64:13: warning: redefined n with N
> locate1.fs:200:3: warning: original location
> HERE=3535
> Host stack= <0>
> [~/tmp/myforth-arduino/ATmega328p:138750]
>
> So either your problem has to do with you using Windows or with the
> Gforth version you use. No probable cause comes to my mind.

Using Gforth 0.7.9_20200709 (AFAIK the last Windows version released).
I've traced the problem to the text coloring (ansi.fs) which myforth uses.
Editing job.fs as follows results in script 'c' completing without issue.

0 [if]
red color >red
black color >black
blue color >blue
green color >green
cyan color >cyan
yellow color >yellow
[else]
: >red ;
: >black ;
: >blue ;
: >green ;
: >cyan ;
: >yellow ;
[then]

Re: Gforth command-line problem

<u1in4a$2u3in$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23245&group=comp.lang.forth#23245

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Mon, 17 Apr 2023 15:57:29 +1000
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <u1in4a$2u3in$1@dont-email.me>
References: <u1dnas$1v7m3$1@dont-email.me>
<2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me>
<2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me>
<2023Apr16.181551@mips.complang.tuwien.ac.at> <u1i6b9$2o13t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 Apr 2023 05:57:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9e0e6919523d65f1f90dcc292b948667";
logging-data="3083863"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mVYEtrdZ8r32BrnEYjAo/"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:xDoUXUt5EQeEWW6dEpMpuNvYh58=
Content-Language: en-GB
In-Reply-To: <u1i6b9$2o13t$1@dont-email.me>
 by: dxforth - Mon, 17 Apr 2023 05:57 UTC

On 17/04/2023 11:11 am, dxforth wrote:
> On 17/04/2023 2:15 am, Anton Ertl wrote:
>> ... With that change and the change above, and with gforth 0.7.9_20230317
>> I get:
>>
>> [~/tmp/myforth-arduino/ATmega328p:138749] ~/gforth/gforth -p .:~/gforth ./job.fs -e "bye "
>>
>> job.fs:64:13: warning: redefined n with N
>> locate1.fs:200:3: warning: original location
>> HERE=3535
>> Host stack= <0>
>> [~/tmp/myforth-arduino/ATmega328p:138750]
>>
>> So either your problem has to do with you using Windows or with the
>> Gforth version you use.  No probable cause comes to my mind.
>
> Using Gforth 0.7.9_20200709 (AFAIK the last Windows version released).
> I've traced the problem to the text coloring (ansi.fs) which myforth uses.
> Editing job.fs as follows results in script 'c' completing without issue.
>
> 0 [if]
>  red color >red
>  black color >black
>  blue color >blue
>  green color >green
>  cyan color >cyan
>  yellow color >yellow
> [else]
>  : >red ;
>  : >black ;
>  : >blue ;
>  : >green ;
>  : >cyan ;
>  : >yellow ;
> [then]

Found the bug. There isn't one. What was happening is that the last text
colour set was black. When -e "bye" executed control returned to the OS
but with no visible prompt. It had all the appearance I was still in
Gforth and nothing I typed showed or had any effect.

Re: Gforth command-line problem

<2023Apr17.091603@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23246&group=comp.lang.forth#23246

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Mon, 17 Apr 2023 07:16:03 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 12
Message-ID: <2023Apr17.091603@mips.complang.tuwien.ac.at>
References: <u1dnas$1v7m3$1@dont-email.me> <2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me> <2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me> <2023Apr16.181551@mips.complang.tuwien.ac.at> <u1i6b9$2o13t$1@dont-email.me> <u1in4a$2u3in$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="609438adcb03bab2457a674e5a7fc0d0";
logging-data="3105158"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WdAfGl2KuKfEb1Z61fQeK"
Cancel-Lock: sha1:A616tqDfzrkvir0k5rNLN7vkkB8=
X-newsreader: xrn 10.11
 by: Anton Ertl - Mon, 17 Apr 2023 07:16 UTC

dxforth <dxforth@gmail.com> writes:
>What was happening is that the last text
>colour set was black.

And you are using black background, right?

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: Gforth command-line problem

<u1iv8f$2v7rb$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23247&group=comp.lang.forth#23247

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Mon, 17 Apr 2023 18:16:14 +1000
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <u1iv8f$2v7rb$1@dont-email.me>
References: <u1dnas$1v7m3$1@dont-email.me>
<2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me>
<2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me>
<2023Apr16.181551@mips.complang.tuwien.ac.at> <u1i6b9$2o13t$1@dont-email.me>
<u1in4a$2u3in$1@dont-email.me> <2023Apr17.091603@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Apr 2023 08:16:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9e0e6919523d65f1f90dcc292b948667";
logging-data="3121003"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188kj6IoIufPPGizqr9ETbv"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:/bo8NGFf8PBfmu4EQd3tJJ94vVw=
In-Reply-To: <2023Apr17.091603@mips.complang.tuwien.ac.at>
Content-Language: en-GB
 by: dxforth - Mon, 17 Apr 2023 08:16 UTC

On 17/04/2023 5:16 pm, Anton Ertl wrote:
> dxforth <dxforth@gmail.com> writes:
>> What was happening is that the last text
>> colour set was black.
>
> And you are using black background, right?

Correct. ISTM resetting text to black was asking for trouble.

Re: Gforth command-line problem

<2023Apr17.113057@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23248&group=comp.lang.forth#23248

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Mon, 17 Apr 2023 09:30:57 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 20
Message-ID: <2023Apr17.113057@mips.complang.tuwien.ac.at>
References: <u1dnas$1v7m3$1@dont-email.me> <2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me> <2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me> <2023Apr16.181551@mips.complang.tuwien.ac.at> <u1i6b9$2o13t$1@dont-email.me> <u1in4a$2u3in$1@dont-email.me> <2023Apr17.091603@mips.complang.tuwien.ac.at> <u1iv8f$2v7rb$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="609438adcb03bab2457a674e5a7fc0d0";
logging-data="3147792"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RxtGFKtJWmGfTgXxTWT9x"
Cancel-Lock: sha1:BcAzWqGEVRG4Ca3msKnIxsvMPws=
X-newsreader: xrn 10.11
 by: Anton Ertl - Mon, 17 Apr 2023 09:30 UTC

dxforth <dxforth@gmail.com> writes:
>ISTM resetting text to black was asking for trouble.

Gforth resets to the default foreground colour.

The ANSI terminal interface does not give a way to know what the
foreground and background colours are. So when you use other than the
default colours, you may run into trouble. In Gforth we start out in
LIGHT-MODE (which is designed for a white or whitish background), but
the colours we use are suboptimal for dark backgrounds. So there is
also DARK-MODE which chooses colours that are better with black (or
blackish) backgrounds. If you use a coloured or medium gray
background, both modes are probably not so great.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: Gforth command-line problem

<2023Apr17.184028@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23250&group=comp.lang.forth#23250

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Mon, 17 Apr 2023 16:40:28 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 21
Message-ID: <2023Apr17.184028@mips.complang.tuwien.ac.at>
References: <u1dnas$1v7m3$1@dont-email.me> <2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me> <2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me> <2023Apr16.181551@mips.complang.tuwien.ac.at> <u1i6b9$2o13t$1@dont-email.me> <u1in4a$2u3in$1@dont-email.me> <2023Apr17.091603@mips.complang.tuwien.ac.at> <u1iv8f$2v7rb$1@dont-email.me> <2023Apr17.113057@mips.complang.tuwien.ac.at> <u1jc46$312fc$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="609438adcb03bab2457a674e5a7fc0d0";
logging-data="3280248"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ptCon37j1e5ocXyBb/Xsv"
Cancel-Lock: sha1:Gq4mQuDGlGoAxpgp7UKRHTT4kAQ=
X-newsreader: xrn 10.11
 by: Anton Ertl - Mon, 17 Apr 2023 16:40 UTC

dxforth <dxforth@gmail.com> writes:
>On 17/04/2023 7:30 pm, Anton Ertl wrote:
>> dxforth <dxforth@gmail.com> writes:
>>> ISTM resetting text to black was asking for trouble.
>>
>> Gforth resets to the default foreground colour.
>
>On BYE - then how come it failed to do so for me?

Not on BYE, but after outputting something with a specific colour
(e.g., an error message). So when you interpret BYE, the current
colour is the default colour. Of course, if you change the colour in
your application (as happens in myforth-arduino), it's your
responsibility to change it back.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: Gforth command-line problem

<2023Apr16.181551@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23253&group=comp.lang.forth#23253

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Sun, 16 Apr 2023 16:15:51 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 65
Message-ID: <2023Apr16.181551@mips.complang.tuwien.ac.at>
References: <u1dnas$1v7m3$1@dont-email.me> <2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me> <2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="a556ed683581f920cdc785748e4e2933";
logging-data="2758645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PhV66EKsMfAuJ7wTkevNT"
Cancel-Lock: sha1:7cNY8foGdzOWogaQN6VWA+HaL6I=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sun, 16 Apr 2023 16:15 UTC

dxforth <dxforth@gmail.com> writes:
>On 16/04/2023 12:04 am, Anton Ertl wrote:
>> dxforth <dxforth@gmail.com> writes:
>>> On 15/04/2023 9:32 pm, Anton Ertl wrote:
>>>> dxforth <dxforth@gmail.com> writes:
>>>>> Running Gforth 0.7.9_20200709 for Windows. Having problems with the script:
>>>>>
>>>>> gforth ./job.fs -e "bye "
>>>>>
>>>>> from: https://github.com/CharleyShattuck/myforth-arduino
>>>>
>>>> There is no job.fs in the this directory and severl job.fs in its
>>>> subdirectories.
>>>
>>> Not sure what you mean. The script in question is here:
>>>
>>> https://github.com/CharleyShattuck/myforth-arduino/blob/master/ATmega328p/c
>>
>> I tried to run job.fs from myforth-arduino/ATmega328p with Gforth
>> 0.7.3 and 0.7.9_20230317.
>>
>> It does not work with 0.7.3, because it does not find the word "c#",
>> which is not part of Gforth, but apparently also not defined by
>> myforth-arduino.
>
>Appears unimportant so I commented out:
>
>: words dictionary begin c@p while
> drop ( c# @ 60 #- invert -if cr then drop ) .word repeat drop ;

With that change, and gforth 0.7.3 I get:

[~/tmp/myforth-arduino/ATmega328p:138742] gforth job.fs -e "bye "

HERE=3535
Host stack= <0>
[~/tmp/myforth-arduino/ATmega328p:138743]

>> It does not work with 0.7.9_20230317, because it wants to treat HEADER
>> as a deferred word (it isn't in that version).
>
>Ditto:
>
>\ include ../vtags.fs use-tags

With that change and the change above, and with gforth 0.7.9_20230317
I get:

[~/tmp/myforth-arduino/ATmega328p:138749] ~/gforth/gforth -p .:~/gforth ./job.fs -e "bye "

job.fs:64:13: warning: redefined n with N
locate1.fs:200:3: warning: original location
HERE=3535
Host stack= <0>
[~/tmp/myforth-arduino/ATmega328p:138750]

So either your problem has to do with you using Windows or with the
Gforth version you use. No probable cause comes to my mind.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: Gforth command-line problem

<u1krso$385aq$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23254&group=comp.lang.forth#23254

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Tue, 18 Apr 2023 11:31:04 +1000
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <u1krso$385aq$1@dont-email.me>
References: <u1dnas$1v7m3$1@dont-email.me>
<2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me>
<2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me>
<2023Apr16.181551@mips.complang.tuwien.ac.at> <u1i6b9$2o13t$1@dont-email.me>
<u1in4a$2u3in$1@dont-email.me> <2023Apr17.091603@mips.complang.tuwien.ac.at>
<u1iv8f$2v7rb$1@dont-email.me> <2023Apr17.113057@mips.complang.tuwien.ac.at>
<u1jc46$312fc$1@dont-email.me> <2023Apr17.184028@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 18 Apr 2023 01:31:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5058b936e169ea2de7255ebb801c1e60";
logging-data="3413338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bXCdIB4KVJoDuHwVHO05W"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:qPbmwO4i3HF9Hpkc0GBuQXfX6WA=
In-Reply-To: <2023Apr17.184028@mips.complang.tuwien.ac.at>
Content-Language: en-GB
 by: dxforth - Tue, 18 Apr 2023 01:31 UTC

On 18/04/2023 2:40 am, Anton Ertl wrote:
> dxforth <dxforth@gmail.com> writes:
>> On 17/04/2023 7:30 pm, Anton Ertl wrote:
>>> dxforth <dxforth@gmail.com> writes:
>>>> ISTM resetting text to black was asking for trouble.
>>>
>>> Gforth resets to the default foreground colour.
>>
>> On BYE - then how come it failed to do so for me?
>
> Not on BYE, but after outputting something with a specific colour
> (e.g., an error message). So when you interpret BYE, the current
> colour is the default colour. Of course, if you change the colour in
> your application (as happens in myforth-arduino), it's your
> responsibility to change it back.

This was also an issue in DOS apps. DX-Forth for DOS tries to restore
colours etc on exit that were in place at boot-up. 'Try' because
resetting BIOS video attribute wasn't enough - the screen had to scroll
for the change to be effective.

Re: Gforth command-line problem

<u1jc46$312fc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23258&group=comp.lang.forth#23258

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Gforth command-line problem
Date: Mon, 17 Apr 2023 21:55:49 +1000
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <u1jc46$312fc$1@dont-email.me>
References: <u1dnas$1v7m3$1@dont-email.me>
<2023Apr15.133201@mips.complang.tuwien.ac.at> <u1e4or$21hnc$1@dont-email.me>
<2023Apr15.160429@mips.complang.tuwien.ac.at> <u1elju$23p57$1@dont-email.me>
<2023Apr16.181551@mips.complang.tuwien.ac.at> <u1i6b9$2o13t$1@dont-email.me>
<u1in4a$2u3in$1@dont-email.me> <2023Apr17.091603@mips.complang.tuwien.ac.at>
<u1iv8f$2v7rb$1@dont-email.me> <2023Apr17.113057@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Apr 2023 11:55:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9e0e6919523d65f1f90dcc292b948667";
logging-data="3181036"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wdSNsXXIrSblfr3nVmaoG"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:fVlnKg91hcxZj7rr+yTkq1tLsqM=
Content-Language: en-GB
In-Reply-To: <2023Apr17.113057@mips.complang.tuwien.ac.at>
 by: dxforth - Mon, 17 Apr 2023 11:55 UTC

On 17/04/2023 7:30 pm, Anton Ertl wrote:
> dxforth <dxforth@gmail.com> writes:
>> ISTM resetting text to black was asking for trouble.
>
> Gforth resets to the default foreground colour.

On BYE - then how come it failed to do so for me?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor