X-Received: by 2002:a05:622a:1982:b0:402:36dd:20fe with SMTP id u2-20020a05622a198200b0040236dd20femr64136qtc.2.1689462308738; Sat, 15 Jul 2023 16:05:08 -0700 (PDT) X-Received: by 2002:a05:6808:1a21:b0:3a1:eb8a:203d with SMTP id bk33-20020a0568081a2100b003a1eb8a203dmr11392119oib.11.1689462308413; Sat, 15 Jul 2023 16:05:08 -0700 (PDT) Path: csiph.com!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.os.os2.programmer.misc Date: Sat, 15 Jul 2023 16:05:08 -0700 (PDT) In-Reply-To: <7ee4e13c-63ae-4c02-a17d-b183c5045e92n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=136.158.103.73; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG NNTP-Posting-Host: 136.158.103.73 References: <83234834-db2d-42ac-8bc6-0fcf631f53b9n@googlegroups.com> <7ee4e13c-63ae-4c02-a17d-b183c5045e92n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: win32 via odin From: Paul Edwards Injection-Date: Sat, 15 Jul 2023 23:05:08 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2725 Xref: csiph.com comp.os.os2.programmer.misc:1714 On Sunday, July 16, 2023 at 6:34:16=E2=80=AFAM UTC+8, xhajt03 wrote: > > > Not sure about that one, perhaps someone else has some insight.=20 > > I have confirmed that when I build my own OS/2 native=20 > > executables, the escape sequences take effect. > I believe that Win32 console applications executed via Odin are actually = run in a PM window rather than a real OS/2 console window and ANSI codes ar= e probably not interpreted there. When running from an OS/2 command prompt, "pe" is used for Win32 graphics programs, and "pec" is used to run console mode programs. "pec" does not open a new window and it looks totally like it stays in the OS/2 command prompt. But I may be mistaken. > > I think the VIO thing is what is swallowing the ESC character.=20 > > And what I need to do is switch to standard streams. > I don't think that you can ever get cursor keys from stdin under OS/2 - o= nly regular characters are delivered that way. You'd need to use the (16-bi= t) kbdcalls with thunking, or some wrapper around it (EMXWRAP.DLL from EMX = runtime, or something else).=20 Crikey. I thought that OS/2 2.0 had done a total switch to 32-bit. Ok, thanks for the tip. If that's what I need to use, so be it. It will all be hidden in my C library anyway. Thanks. Paul.