On Sun, 12 Dec 1999, M. Uli Kusterer wrote:
> what is the current xTalk command to get input from the console? I guess
> only MC has this as it's the only one with a standalone version.
I'm not sure what you mean by "standalone" here. The issue is that
this is only possible on UNIX systems: Mac OS doesn't have any concept
of console I/O, and a Win32 app must either be graphical *or* console,
it can't be both.
> I know "put" outputs to the console,
Note that "put" only outputs to the console in MetaCard when running
without the graphical environment. And of course only when the
destination would be the message box.
> but what's the equivalent for input? I need
> something that gets one line from the user via the console (I won't be
> using this in MC, so please don't blame me for asking tech support
> questions).
The syntax you want is:
read from stdin [for | until] <condition>
write <expression> to stdout
BTW, The latter command is pretty handy for debugging because you can
"put" a lot of stuff and still be able to view it in a scrolling
window without going to the trouble of creating a separate stack for
the output.
Regards,
Scott
> Cheers,
> -- M. Uli Kusterer
>
> ------------------------------------------------------------
> http://www.weblayout.com/witness
> 'The Witnesses of TeachText are everywhere...'
>
> --- HELP SAVE HYPERCARD: ---
> Details at: http://www.hyperactivesw.com/SaveHC.html
> Sign: http://www.giguere.uqam.ca/petition/hcpetition.html
>
>
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...