[comp.lang.forth] help with Amiga JForth

hensley@kira.msu.edu (John Hensley) (07/13/90)

Hi. I tried to post yesterday, but apparently it didn't work, as I
haven't seen my article yet. If you are getting it, sorry for the
redundancy.

I'm new to programming both JForth and the Amiga, and cannot figure
out how to read user input in my program's window (it prompts in its
window, and you have to answer in its parent cli). I must not be RTFM
enough, because there *has* to be a better way than using string
gadgets for all text input, right?  

I'm looking for some sample code demonstrating how to do this
correctly, or (maybe better) a source for documentation of programming
in Forth on the Amiga. The JForth manual is really pretty good for
teaching a beginner Forth, but I think it assumes a little too much
Amiga programming experience.

Or maybe I'm just stupid and dumb...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Hensley		   "LARD! You can see it! In the clouds
hensley@frith.egr.msu.edu   up in the sky! LARD! Floats by in
517-351-6092		    clusters in our water supply!" -"The Power of Lard"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

jax@well.sf.ca.us (Jack J. Woehr) (07/14/90)

hensley@kira.msu.edu (John Hensley) writes:

>I'm new to programming both JForth and the Amiga, and cannot figure
>out how to read user input in my program's window (it prompts in its
>window, and you have to answer in its parent cli). I must not be RTFM
>enough, because there *has* to be a better way than using string
>gadgets for all text input, right?  

	Ok, here's your problem:

	1) In a CLONEd application, WORD ( KEY, etc.) is vectored
to consume command line args.

	2) If you opened a window as a file (RAW:, etc) then use
CONSOLEIN @ and CONSOLEOUT @ as file handles to FREAD and FWRITE
for input and output.

	3) IF you opened a graphics window, you will have to handle
it by opening a console ... read your amiga docs! It ain't easy,
but not too hard either, maybe we digs up some source and post here
soonish if you keep reminding! :-)

	No, John, you're not stupid ... if you were, you'd be
posting in comp.lang.c ... :-)

 <jax@well.{UUCP,sf.ca.us} ><  Member, >        /// ///\\\    \\\  ///
 <well!jax@lll-winken.arpa >< X3J14 TC >       /// ///  \\\    \\\/// 
 <JAX on GEnie             >< for ANS  > \\\  /// ///====\\\   ///\\\ 
 <SYSOP RCFB (303) 278-0364><  Forth   >  \\\/// ///      \\\ ///  \\\