Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!think.com!paperboy!osf.org!dbrooks From: dbrooks@osf.org (David Brooks) Newsgroups: comp.sys.atari.st Subject: Re: TOS quirk with ALT key Message-ID: <17689@paperboy.OSF.ORG> Date: 3 Jan 91 21:09:04 GMT References: <17625@paperboy.OSF.ORG> <2792@atari.UUCP> Sender: news@OSF.ORG Reply-To: dbrooks@osf.org (David Brooks) Organization: Open Software Foundation Lines: 19 In article <2792@atari.UUCP>, apratt@atari.UUCP (Allan Pratt) writes: |> dbrooks@penge.osf.org (David Brooks) writes: |> >...the keys in the top row, between "1" and |> >"=", get 0x76 arbitrarily added to their scancodes before being |> >returned to me. |> |> That's not arbitrary; it's part of the VDI spec, which is really just a |> codification of the behavior of the IBM PC keyboard/scancode |> characteristics. I don't know WHY it is, but the keys from 1 to = are |> defined to return scan codes 0x78 to 0x83, and that's just the way it |> is. Thanks for the explanation, Allan. A clarification: in the part you edited out I explained that this only happens when ALT is depressed. Otherwise, the scancodes 0x02 to 0x12 are returned. Is *this* also true of the IBM keyboard? -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks