[Factor-talk] Simple keyboard input

2011-11-04 Thread John Porubek
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

Re: [Factor-talk] Simple keyboard input

2011-11-04 Thread P.
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

Re: [Factor-talk] Simple keyboard input

2011-11-04 Thread P.
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

Re: [Factor-talk] Simple keyboard input

2011-11-04 Thread Doug Coleman
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

[Factor-talk] docs.factorcode.org

2011-11-04 Thread Fred Alger
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

Re: [Factor-talk] docs.factorcode.org

2011-11-04 Thread Joe Groff
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