Article View: comp.sys.apple2.gno
Article #498Problem with input
From: scratchy.caltech.edunathan Natha...
Date: Mon, 25 Jan 1993 06:08
Date: Mon, 25 Jan 1993 06:08
36 lines
1887 bytes
1887 bytes
I figure that this newsgroup has more techies that c.s.a2, so I'll
post it here. Using Orca/M 2.0, I'd like my login file to be able to
read in a keypress from the user, and based on that, dump the user in
a certain directory.
This is what I tried:
Echo " D - Desk.Accs"
Echo " T - Twilight"
input selection
if {selection}=="D"
prefix desk.accs
else if {selection} == "T"
prefix Twilight
endif
Written like this, it prints out the text, and then appears to wait for
a line of text. I can enter stuff, but when I press return, the computer
beeps at me. As this is the login file, open-apple-. won't work, and I
have to reboot. I tried making it "input {selection}", but that generated
an error on that line.
Can someone tell me what I've done wrong, and how to fix it, or if I
should make my login file a EXE file (right now, it's the regular EXEC SRC
file) and run it that way.
Thanks in advance.
* Nathan Mates nathan@cco.caltech.edu * MSC #850, Pasadena CA 91126
* No fancy quote, no disclaimers for irate employers, no .sig-- oops,
* Too late for that! Several Megabyte joke collector and IIGS hacker
* operating out of Caltech, the world's best University!
--
* Nathan Mates nathan@cco.caltech.edu * MSC #850, Pasadena CA 91126
* No fancy quote, no disclaimers for irate employers, no .sig-- oops,
* Too late for that! Several Megabyte joke collector and IIGS hacker
* operating out of Caltech, the world's best University!
Technical Details
Message-ID:
<1k004kINNqi3@gap.caltech.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!nathanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!nathan From: scratchy.caltech.edu!nathan (Nathan Mates) Newsgroups: comp.sys.apple2.gno Subject: Problem with input Date: 25 Jan 1993 06:08:19 GMT Organization: California Institute of Technology, Pasadena Lines: 36 Message-ID: <1k004kINNqi3@gap.caltech.edu> NNTP-Posting-Host: kanga.caltech.edu Originator: nathan@kanga