Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Colin Leroy-Mira Newsgroups: comp.sys.apple2.programmer Subject: Keyboard layout/character set question Date: Fri, 20 Jan 2023 09:03:02 +0100 Organization: A noiseless patient Spider Lines: 23 Message-ID: <20230120090302.0a08a296@SGX-CMP-480> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: reader01.eternal-september.org; posting-host="a52288462d26fb7c0cedeb0c8d5cdbe7"; logging-data="2082494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KQkDEFsOBP7DlhuHMqR5ePEm1Hy72QIQ=" Cancel-Lock: sha1:152T/akloDVuDDObyjUnehpsGlc= X-Newsreader: Claws Mail 3.19.1git18 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Xref: csiph.com comp.sys.apple2.programmer:6002 Hi, I have a french Apple 2c, with a french keyboard and a toggle button that allows to switch the keyboard layout from french to US. The button has two effects. It switches characters codes for standard ASCII characters (ie, 'a' becomes 'q' and vice-versa), but for "extended" characters, the code is not changed, only the display is.=20 For example, if I hit '=C3=A9' while in french mode, it's going to display = as '=C3=A9'. If I toggle the keyboard to US when an '=C3=A9' is displayed on-s= creen, the display of this character changes and becomes an '{'. (this is quite funny, but a bit impractical). I'd like to programmaticaly know which mode the keyboard is in, but I can't find anything related in PEEKs and POKEs or anything. Does anyone know if this is possible ? Thanks! --=20 Colin https://www.colino.net/