Path: utzoo!utgpu!watserv1!watmath!att!dptg!ulysses!andante!mit-eddie!snorkelwacker!usc!ucsd!pacbell.com!pacbell!well!jax From: jax@well.sf.ca.us (Jack J. Woehr) Newsgroups: comp.lang.forth Subject: Re: help with Amiga JForth Message-ID: <19013@well.sf.ca.us> Date: 14 Jul 90 03:42:20 GMT References: <1990Jul12.211719.1515@msuinfo.cl.msu.edu> Distribution: na Lines: 29 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 ... :-) < Member, > /// ///\\\ \\\ /// < X3J14 TC > /// /// \\\ \\\/// < for ANS > \\\ /// ///====\\\ ///\\\ < Forth > \\\/// /// \\\ /// \\\