From: "Dave Yeo" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTPS id 3692794 for gnuports@2rosenthals.com; Mon, 16 May 2022 18:00:42 -0400 Received: from secmgr-va.randr ([192.168.200.201]:58881 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nqilb-0003RW-1E for gnuports@2rosenthals.com; Mon, 16 May 2022 18:00:39 -0400 Received: from mail-il1-f181.google.com ([209.85.166.181]:45859) by mail2.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nqilX-0007uf-2Q for gnuports@2rosenthals.com; Mon, 16 May 2022 18:00:36 -0400 Received: by mail-il1-f181.google.com with SMTP id e4so2225947ils.12 for ; Mon, 16 May 2022 15:00:35 -0700 (PDT) X-SASI-Hits: BODYTEXTP_SIZE_3000_LESS 0.000000, BODY_SIZE_1000_LESS 0.000000, BODY_SIZE_2000_LESS 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, BODY_SIZE_800_899 0.000000, DATE_TZ_NA 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, HTML_00_01 0.050000, HTML_00_10 0.050000, IN_REP_TO 0.000000, KNOWN_MTA_TFX 0.000000, LEGITIMATE_SIGNS 0.000000, MSG_THREAD 0.000000, NO_CTA_URI_FOUND 0.000000, NO_URI_HTTPS 0.000000, REFERENCES 0.000000, SENDER_NO_AUTH 0.000000, SXL_IP_TFX_WM 0.000000, WEBMAIL_SOURCE 0.000000, __ANY_URI 0.000000, __BODY_NO_MAILTO 0.000000, __BOUNCE_CHALLENGE_SUBJ 0.000000, __BOUNCE_NDR_SUBJ_EXEMPT 0.000000, __CT 0.000000, __CTE 0.000000, __CT_TEXT_PLAIN 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_DOMAIN 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FORWARDED_MSG 0.000000, __FRAUD_WEBMAIL 0.000000, __FRAUD_WEBMAIL_FROM 0.000000, __FROM_DOMAIN_NOT_IN_BODY 0.000000, __FROM_GMAIL 0.000000, __FUR_HEADER 0.000000, __FUR_RDNS_GMAIL 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_REFERENCES 0.000000, __HEADER_ORDER_FROM 0.000000, __IN_REP_TO 0.000000, __MAIL_CHAIN 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __MOZILLA_USER_AGENT 0.000000, __NO_HTML_TAG_RAW 0.000000, __PHISH_SPEAR_STRUCTURE_1 0.000000, __RDNS_WEBMAIL 0.000000, __REFERENCES 0.000000, __SANE_MSGID 0.000000, __SUBJ_ALPHA_END 0.000000, __SUBJ_ALPHA_NEGATE 0.000000, __SUBJ_REPLY 0.000000, __TO_MALFORMED_2 0.000000, __TO_NAME 0.000000, __TO_NAME_DIFF_FROM_ACC 0.000000, __TO_REAL_NAMES 0.000000, __URI_MAILTO 0.000000, __URI_NO_WWW 0.000000, __URI_NS 0.000000, __USER_AGENT 0.000000, __X_GM_MESSAGE_STATE 0.000000, __X_GOOGLE_DKIM_SIGNATURE 0.000000, __X_GOOGLE_SMTP_SOURCE 0.000000, __YOUTUBE_RCVD 0.000000 X-SASI-Probability: 7% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 4.1.4, AntispamData: 2022.5.16.212122 X-SASI-Hits: BODYTEXTP_SIZE_3000_LESS 0.000000, BODY_SIZE_1000_LESS 0.000000, BODY_SIZE_2000_LESS 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, BODY_SIZE_800_899 0.000000, DATE_TZ_NA 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, HTML_00_01 0.050000, HTML_00_10 0.050000, IN_REP_TO 0.000000, KNOWN_MTA_TFX 0.000000, LEGITIMATE_SIGNS 0.000000, MSG_THREAD 0.000000, NO_CTA_URI_FOUND 0.000000, NO_URI_HTTPS 0.000000, REFERENCES 0.000000, SENDER_NO_AUTH 0.000000, SXL_IP_TFX_WM 0.000000, WEBMAIL_SOURCE 0.000000, __ANY_URI 0.000000, __BODY_NO_MAILTO 0.000000, __BOUNCE_CHALLENGE_SUBJ 0.000000, __BOUNCE_NDR_SUBJ_EXEMPT 0.000000, __CT 0.000000, __CTE 0.000000, __CT_TEXT_PLAIN 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_DOMAIN 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FORWARDED_MSG 0.000000, __FRAUD_WEBMAIL 0.000000, __FRAUD_WEBMAIL_FROM 0.000000, __FROM_DOMAIN_NOT_IN_BODY 0.000000, __FROM_GMAIL 0.000000, __FUR_HEADER 0.000000, __FUR_RDNS_GMAIL 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_REFERENCES 0.000000, __HEADER_ORDER_FROM 0.000000, __IN_REP_TO 0.000000, __MAIL_CHAIN 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __MOZILLA_USER_AGENT 0.000000, __NO_HTML_TAG_RAW 0.000000, __PHISH_SPEAR_STRUCTURE_1 0.000000, __RDNS_WEBMAIL 0.000000, __REFERENCES 0.000000, __SANE_MSGID 0.000000, __SUBJ_ALPHA_END 0.000000, __SUBJ_ALPHA_NEGATE 0.000000, __SUBJ_REPLY 0.000000, __TO_MALFORMED_2 0.000000, __TO_NAME 0.000000, __TO_NAME_DIFF_FROM_ACC 0.000000, __TO_REAL_NAMES 0.000000, __URI_MAILTO 0.000000, __URI_NO_WWW 0.000000, __URI_NS 0.000000, __USER_AGENT 0.000000, __X_GM_MESSAGE_STATE 0.000000, __X_GOOGLE_DKIM_SIGNATURE 0.000000, __X_GOOGLE_SMTP_SOURCE 0.000000, __YOUTUBE_RCVD 0.000000 X-SASI-Probability: 7% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 4.1.4, AntispamData: 2022.5.16.212122 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=ljizvYU28pdC4kyYksT0draFVnRMYW9Y0jfqyqyYHxI=; b=Mn7/NFCnteUvpqUnW4Z4ztnh1RqQenwl6FGO2xuozM1UBEc2/9A7oBS46gyZfstk2U k0nEZSy4NZg0e3nTrXgYrhwWY6khTNfj/PdGAhcfPLz/BkibaPRNWPys5oOQOrCTFw8l 6X0XHbWdH07ejb6qyWxHjNDSMBAY58BHp93Ig5VuT5I+clE+PotUshHa4Gxk6fue7yvd PcxxrTwJ1OrxOU/Nlv1K4fEZxzpCRsTsoJFUcyokON6dwGLBrKJpczYrgmqF7MVHq6+5 0UPsSAx5lDoNCOgvJt7pKzY8g9sfT6P8+pr5gvpM0ZJHi8ruh8vsLZMkkoMPDUaF7RLa yeqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ljizvYU28pdC4kyYksT0draFVnRMYW9Y0jfqyqyYHxI=; b=yR7Nqhr2y277NTioSpNCmhwBkRvO9j1yukGVRmsEK6p2gTg/uALVRl7RgEuHOgeJMU sDAQ9bjEZ/vadOMpu2+vh6I2QaF8hEDKHsdDvnwb5GImH+tVQ3rctWJGZHSpJfji5vRb WJDRoE2xhlcYuz8QLiWWvQAMvLWFrZzzVmJfy3GMFPPu9gTdL0gCpWLhkI5z6Hwre+vm 8dK1g2+Tbf1xS5hkI/9dCWNVtCNFyRVfGa9I7dEnim15f5sXokHXFOSLVXiDtARAgDpj J0L0UT7WB0j6ndZuFl6M47qrNr+aAC1NalR8JhrT4fPtFra1eYdoSi+SBaNQAupZWqLQ 2xWw== X-Gm-Message-State: AOAM532y2EwSCqReSiEjeQJ6tLfDcxBaceIpUdWgweK/K2KOahDudLUr dDDO9a0+MBNoqVQgGnoLAVUtWnK6+2A= X-Google-Smtp-Source: ABdhPJx0zEQKnV6PZOYMv8wx+pIQLhvwAoyGQlvUVRpwBdsdZnDLkrpeFeyK2Hgyg2yKLz7ciH4jnQ== X-Received: by 2002:a63:5d50:0:b0:3db:5325:b120 with SMTP id o16-20020a635d50000000b003db5325b120mr17247803pgm.212.1652738004260; Mon, 16 May 2022 14:53:24 -0700 (PDT) Return-Path: Received: from [192.168.0.104] ([207.194.98.81]) by smtp.gmail.com with ESMTPSA id b10-20020a621b0a000000b0050dc76281fasm7357141pfb.212.2022.05.16.14.53.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 May 2022 14:53:23 -0700 (PDT) Subject: Re: [GNU Ports] getting a single keypress To: GNU Ports for eCS Mailing List References: Message-ID: <9d30cc3e-1273-ad9d-ec3b-7e035d8770f7@gmail.com> Date: Mon, 16 May 2022 14:53:21 -0700 User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 >> 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