Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!sun!amdcad!ames!ucbcad!zen!hoser.berkeley.edu!bryce From: bryce@hoser.berkeley.edu (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: Re: Simple Example Desired Message-ID: <4472@zen.berkeley.edu> Date: Tue, 20-Oct-87 05:57:40 EDT Article-I.D.: zen.4472 Posted: Tue Oct 20 05:57:40 1987 Date-Received: Wed, 21-Oct-87 19:36:49 EDT References: <224@shamash.UUCP> <1662@charon.unm.edu> Sender: news@zen.berkeley.edu Organization: Center Tapped Solids, Inc. Lines: 26 Keywords: Console.device Text() In article <1662@charon.unm.edu> hansb@ariel.UUCP (Hans Bechtel) writes: > >I need a good way of inputting what I type from the keyboard onto a >window on my own screen that I have set up. What should I use? > >The Console.device >or >The Text(); command You are in deep trouble if you try to use the Text() command to input. It can only draw text onto the screen. :-) The console.device can go in and out, but is somewhat complex to use. The easiest way to getting keystrokes is to request Class VANILLAKEY IDCMP messages. You simply request this type of message in the IDCMP field when opening the window. Messages will start to flow in. If the Message->Class compares to VANILLAKEY then Message->Code will contain the key. |\ /| . Ack! (NAK, SOH, EOT) {o O} . bryce@hoser.berkeley.EDU -or- ucbvax!hoser!bryce (") The CBS nightly news: U Dan Rather, paraphrased: "Mr. Analyst, do you think we will continue to see a drop in the market like today's?" Market Analyst: "Well, that can only happen for three more days."