gnuports@2rosenthals.com メーリングリストのアーカイブ メッセージ #36

差出人: "Dave Yeo" <gnuports@2rosenthals.com> フル ヘッダー
未複合化メッセージ
件名: Re: [GNU Ports] getting a single keypress
日付: Mon, 16 May 2022 14:53:21 -0700
宛先: 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


サブスクライブ: フィード, ダイジェスト, インデックス.
サブスクライブ解除
リスト マスターへメール