On Fri, Nov 4, 2011 at 7:29 PM, Doug Coleman <[email protected]> wrote:
> 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 the nodelay() call. In extra/curses/,
> call nodelay after you make a curses-window.
>
> Using the UI, you can do something similar to gesture-logger.
> "gesture-logger" run
>
> Cheers,
> Doug
Thanks for the suggestions.
I use Factor in a terminal window about half the time I use it. I read Elie
Chaftari's blog post "System-wide Factor" (
http://fun-factor.blogspot.com/2009/10/system-wide-factor.html) and
implemented my own script that calls the Factor executable using "rlwrap" (
http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap.html). rlwrap is a great
tool that gives me command line history that persists across sessions
(something I wish the listener had!) as well as a logfile that captures
Factor's output. This is really handy when, after a session of trial and
error that eventually leads to a desired result, I can't remember exactly
how I got there!
In retrospect, all the versions of Forth I've used have been terminal
based. Some have also probably used curses. Perhaps there's some basis for
comparison there.
I was looking for some short examples of using gestures. It's hard to
imagine anything shorter than gesture-logger! There are some good ideas
there if I use the UI.
Thanks again,
--John
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk