| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: next . |
-=> Quoting Mario Semo to David Muir <=-
MS> On Feb 28 05:38 96, David Muir of 1:259/423 wrote:
DM> I suppose I should have specified that I want to trap these
DM> keystrokes in a windowed OS/2 session and the SetKbdStatus
DM> does not work in that environment. Any hints?
MS> rc=KbdSetStatus(&kbstInfo, 0); /* sets new status */
MS> printf("rc=%d\n",rc);
MS> rc=getch();
MS> printf("rc=%d\n",rc);
Pardon me for butting in, but I believe the question involved using
KbdCharIn(), not getch(). You wouldn't, by any chance, be using getch()
because you know that KbdCharIn() doesn't work, would you?
Since getch() presumably works, an explanation of how they did it would be
highly relevant to this thread. I am just ramping up to programming OS/2,
and the thought that a function call which is documented to get keystrokes
doesn't get all of them and doesn't document that fact is very disturbing
(albeit all too familiar).
The documented behavior of KbdSetStatus() in a Vio-windowed application is
"ignored". That is, PRCP.INF states (I presume) that it won't work in a
windowed command-line session.
`
--- Blue Wave/Max v2.12 [NR]
* Origin: OS/2 Northwest, Bellevue, WA 206-957-4513 206-562-7212 (1:343/179)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 343/179 100 1 138/103 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.