Message #35 des archives de la Liste gnuports@2rosenthals.com

De: "Steven Levine" <gnuports@2rosenthals.com> En-têtes complèts
Message brut
Sujet: Re: [GNU Ports] getting a single keypress
Date: Mon, 16 May 2022 14:34:09 -0700
À: "GNU Ports for eCS Mailing List" <gnuports@2rosenthals.com>

In <list-3692583@2rosenthals.com>, on 05/16/22
   at 12:10 PM, "Dave Yeo" <gnuports@2rosenthals.com> said:

Hi Dave,

>OK, went with the libc version of kbdCharin(), which seems more 32 bit
>friendly.

That's probably a bit too low-level for your needs.  I suspect you may not
had read enough of the 16-bit Programming Reference to understand what
KbdCharIn does.

You probably will find:

src\os2\keyboard.c:43
int kbd_input (UCHAR *dst, int binary_p, int echo_p, int wait_p,

easier to integrate.  This will return characters and not scan codes.

>Only problem is at the test program start, it displays an "Î".

For which fprintf?

Steven

--
----------------------------------------------------------------------
"Steven Levine" <steve53@earthlink.net>  Warp/DIY/BlueLion etc.
www.scoug.com www.arcanoae.com www.warpcave.com
----------------------------------------------------------------------


Abonner: Direct, Résumé, Index.
Désabonner
Écrire au gestionnaire de la liste