List gnuports@2rosenthals.com Arkiverade meddelande #36

Från: "Dave Yeo" <gnuports@2rosenthals.com> Meddelandehuvud
Oavkodat meddelande
Ämne: Re: [GNU Ports] getting a single keypress
Datum: Mon, 16 May 2022 14:53:21 -0700
Till: GNU Ports for eCS Mailing List <gnuports@2rosenthals.com>

On 05/16/22 02:34 PM, Steven Levine wrote:
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.

For low ASCII (below 127) it seems to do the job


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.

Ok


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

For which fprintf?

fprintf(stderr, "got key: %c\n", val);

Dave


Prenumerera: Sändning, Uppsamling, Index.
Stoppa prenumeration
Meddelande till ListMaster