Bernd Paysan <[EMAIL PROTECTED]> writes Re: [gforth] help with gForth 0.6 -- please

> I managed to install a current cygwin on my NT installation (a bit difficult 
> - NT is so old that it can't read DVDs), and compiled the current snapshot. 
> I haven't seen problems with the commandline editing, but I used the cursor 
> keys. Maybe the Ctrl key isn't working with Cygwin as desired?

Wow, you installed cygwin on NT just to help?

Please note that I never said I _compiled_ the current snapshot, I use
the distribution for windows *as is*. 

The distribution has the following code in history.fs:

s" os-class" environment? [IF] s" unix" str= [ELSE] true [THEN] 
[IF]
: history-file ( -- addr u )
    s" GFORTHHIST" getenv dup 0= IF
        2drop s" ~/.gforth-history"
    THEN ;
[ELSE]

: history-dir ( -- addr u )
  s" TMP" getenv ?dup ?EXIT drop
  s" TEMP" getenv ?dup ?EXIT drop
  s" c:/" ;

: history-file ( -- addr u )
  s" GFORTHHIST" getenv ?dup ?EXIT
  drop
  history-dir pad place
  s" /ghist.fs" pad +place pad count ;
[THEN]

.. and it has compiled the UNIX part. "~/.gforth-history" fails, of course,
on NT.

I tried executing the [ELSE] part from the terminal and then did
history-cold. It doesn't work. I get this:

history-file cr type
/cygdrive/c/TEMP/ghist.fs ok
history-dir cr type
/cygdrive/c/TEMP ok
  ok
history-cold  ok

But it doesn't remember further commands. ^P, ^N give the 16 and 14,
like they should.

The "/cygdrive/" path looks suspicious. Looking in C:\TEMP, there is no ghist.fs
there. 

Am I almost there?

-marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to