I'm having fun learning Factor and imagining the cool things I'll be
able to do with it someday. But for now, most of my coding involves
translating simple things I've done before in Forth. Sometimes this
can be frustrating. For example, in Forth I might have the following:
: foo begin ." Hi" ?ke
If we ignore the fact that that looks like a weird program for someone to
want to replicate in any language... ;)
... then what ?key seems to be is a non-blocking stdin-read function.
I don't know if Factor has non-blocking peek/read, to be honest.
So I guess I'm not of any help beyond naming the
Here are some words you might want to research:
refill
refill-stdin
buffer-empty?
Remember that you can't test code that uses stdin on the listener, since it
doesn't emulate stdin well.
rien
On Fri, Nov 4, 2011 at 6:22 PM, P. wrote:
> If we ignore the fact that that looks like a weird program
There are two ways you can run Factor: in the terminal, or using our UI.
For the terminal, you will have to set the input mode to non-canonical using
tcsetattr and termios. We don't usually do this...
http://tldp.org/HOWTO/Serial-Programming-HOWTO/x115.html
Or you can uses curses, specifically t
Hey, just noticed something odd — the documentation URLs have changed at
docs.factorcode.org. I have links from my blog pointing to, for example:
http://docs.factorcode.org/content/word-map,sequences.html
These now 404. The documentation for 'map' in the sequences vocab is now here:
http://d
On Fri, Nov 4, 2011 at 5:49 PM, Fred Alger wrote:
>
> Hey, just noticed something odd — the documentation URLs have changed at
> docs.factorcode.org. I have links from my blog pointing to, for example:
>
> http://docs.factorcode.org/content/word-map,sequences.html
>
> These now 404. The documen