From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8362,c7637cfdf68e766 X-Google-Attributes: gidf8362,public X-Google-Thread: f43e6,c7637cfdf68e766 X-Google-Attributes: gidf43e6,public X-Google-Thread: 109d8a,c7637cfdf68e766 X-Google-Attributes: gid109d8a,public X-Google-Thread: 103376,c7637cfdf68e766 X-Google-Attributes: gid103376,public X-Google-Thread: 107079,c7637cfdf68e766 X-Google-Attributes: gid107079,public From: J Giffen Subject: Re: Get_Immediate Date: 1997/09/08 Message-ID: <34147715.1A91@hgo.net>#1/1 X-Deja-AN: 270805946 References: <5tk5he$7rq$1@news.fsu.edu> <5tnreu$9ac$1@news.fsu.edu> <5u58oc$k096_002@ioffe.rssi.ru> <340DF1DD.2736@iop.com> To: Jeff Glenn Organization: Giffen Family Reply-To: jgiffen@hgo.net Newsgroups: comp.lang.ada,sci.math.num-analysis,comp.software-eng,comp.theory,sci.math Date: 1997-09-08T00:00:00+00:00 List-Id: Jeff Glenn wrote: > > Mr. Dewar, > > I tried using Get_Immediate with GNAT (3.05) on Solaris and I didn't get > the results I wanted. > > What I got: > > My program reads each key, and I don't have to type Enter, but it also > echoes each key. When I type a key that sends an escape sequence, like > an arrow key, all of the codes in the sequence are echoed, e.g. ^[[A, > before my program gets the first character of the sequence. Also, some > keys, like Ctrl-C did not get read by my program. > > What I want: > > I want to read without any echoing and be able to get all of the codes > the keyboard can generate. > > Can you tell me how to get these results? > > Thanks! > > Jeff Glenn > > jeff@iop.com It sounds like the computer's sampling rate to the keyboard is faster than what the program is willing to accomodate. This might be solved by going into CMOS Setup and altering the keyboard sampling rate. I'd try slowing it down some. ASCII for cursor right, left, up and down is 1C, 1D, 1E & 1F. Other keys have others. A switch closure for a certain row and column on the keyboard is picked up when a scanning frequency detects it and sends the signal to the motherboard.