List Arkiverade meddelande #36

Från: "Dave Yeo" <> 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 <>

On 05/16/22 02:34 PM, Steven Levine wrote:
In <>, on 05/16/22
   at 12:10 PM, "Dave Yeo" <> said:

Hi Dave,

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

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:

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?

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


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