Bill,
I haven't actually used serial in gforth in the last 5 years, and Forth has
become a background hobby for me, at this point. The best I can do is guess
and give you some generic guidance.
You would have to setup a prompting system if that is what you want. I've
always tending to use hard coded settings for that very reason.
It looks like there is some kind of translation from COMx to /dev/ttyx, but
I don't remember enough about how I got around that.
I've attached some old code that I had working 5 years ago on a Mac. It may
help or it may just confuse you some more. Either way, I no longer even own
a Mac to figure out how to make it work today (;e.g. absolutely no warranty
implied or inferred;).
Good luck.
DaR
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of kibler
Sent: Thursday, March 22, 2012 3:25 PM
To: address@hidden
Subject: Re: [gforth] problem with gforth7 and serial access
the "test" works fine - but serial is still dead.
Now all we need to do is change the "do this" line in the terminal.fs to
match.
from terminal.fs
\ examples of using terminal:
\
\ COM2 B9600 c" 8N1" terminal ( terminal on com2 at 9600 baud, 8N1 )
\ COM1 B57600 c" E71" terminal ( terminal on com1 at 57.6 Kbaud, 7E1 )
Any idea how to change one of the parameters from a prompt?
Another question that I keep forgetting, how do we change from
/dev/ttyS0 to /dev/ttyUSB0? Does it even work on USB converters?
Bill.