> Coos Haak <
htr...@gmail.com> writes:
>>Op Fri, 12 May 2017 11:42:06 GMT schreef Anton Ertl:
>>
>>> Gforth has a word called BLACK-COLORS for switching to a color scheme
>>> appropriate for dark background. You can put it in ~/.gforthrc0 in
>>> order to have it active on every invocation of Gforth.
>>>
>>> - anton
>>
>>Ha, this works with Gforth under Linux and Cygwin.
>>But Gforth 0.7.9-20170427 in Windows 10 ignores
>>a file .gforthrc0 or gforthrc0 in its root directory.
>
> Gforth currently expands "~" to $HOME, $HOMEDIRVE/$HOMEPATH (DOS/Windows
> only), $TEMP, $TMP, and finally the empty string; the first match is used.
>
> Googling around brought up $USERPROFILE and $localappdata as potential
> candidates for checking on Windows (but trying so many different ones
> makes failures harder to track down, so we would prefer one reliable
> method over trying out several).
>
>>I tried placing 'black-colors' in siteinit.fs because
>>this file is mentioned in startup.fs and I assume it
>>will be read during startup. No chance!
>
> startup.fs (and thus siteinit.fs) is read when building the Gforth
> image, i.e., when building or possibly also on installing Gforth.
>
> - anton
does it. In my case the file is c:\users\coos\.gforthrc0