[apluslist] Interactive user input a script
Brian Redman
ber at mac.com
Thu Apr 15 11:58:37 EDT 2004
Hello alaska,
I'm very rusty but until someone comes up with the right way...
$mode ascii
f{p}:{
x := 1024 rho "";
sys.write{1;p;rho p};
n := sys.read{0;x;1024};
x[iota n]
}
input := f{"type here: "};
As for exiting, I always preferred sys.exit(0);
ber
On Apr 14, 2004, at 5:23 AM, asubedi wrote:
> Hi,
>
> How would one prompt for user input and get it from command line in an
> A+ script? I have skimmed through the ref. manual and the tutorial but
> did not find any function to do this. Also, what is the preferred
> method
> for exiting from the script: sys.exit(0), _exit 0, or $off?
>
> I am totally new to A+/APL so please bare my silly questions!
>
> Thanks,
> alaska
>
> _______________________________________________
> apluslist mailing list
> apluslist at aplusdev.net
> http://aplusdev.net/mailman/listinfo/apluslist
More information about the apluslist
mailing list