Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!aurora!amelia!ames!hao!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!crayops From: crayops@uxc.cso.uiuc.edu Newsgroups: comp.sys.mac.hypercard Subject: Detecting the Return Key Message-ID: <209400001@uxc.cso.uiuc.edu> Date: 25 Feb 88 18:09:00 GMT Lines: 22 Nf-ID: #N:uxc.cso.uiuc.edu:209400001:000:882 Nf-From: uxc.cso.uiuc.edu!crayops Feb 25 12:09:00 1988 I have a question. (Yeah, I know, join the club.) Anyway, here it is. I'm designing a training simulator using HyperCard and there are instances where I want to emulate a pseudo-terminal. Not a REAL terminal, that's connected to another machine on the other end, just a picture of a terminal that when you type in the field on the pseudo-terminal card, it looks like you're typing on a real terminal. My problem is this. When a command is entered on the p-terminal, and the trainee hits return, I want HC to recognize the return and put stuff in the field so that it looks like the command actually ran. I.e. if the ReturnKey is hit then if the field has "a.out" in it then PutSimulatedOutputOnScreen But I know (I think?) that you can't test ReturnKey or whatever. So how can I tell when the return key has been hit? Thanks in advance.... _____ crayops