Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[OWBugzilla] [Bug 1150] win32: getch does not return correct keycodes for edit area keys, F11-F12 etc.

4 views
Skip to first unread message

bugzill...@www.openwatcom.org

unread,
Mar 27, 2014, 4:36:18 PM3/27/14
to openwatco...@openwatcom.org
http://bugzilla.openwatcom.org/show_bug.cgi?id=1150





------- Comment #1 from malak...@gmail.com 2014-03-27 12:36 PST8PDT -------
It is standard behaviour.
See details in clib documentation about getch.
If you have a problem, please specify it exactly.
What you expect and what you get.


--
Configure bugmail: http://bugzilla.openwatcom.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

bugzill...@www.openwatcom.org

unread,
Mar 29, 2014, 8:09:50 PM3/29/14
to openwatco...@openwatcom.org
http://bugzilla.openwatcom.org/show_bug.cgi?id=1150





------- Comment #2 from roy...@gmail.com 2014-03-29 16:09 PST8PDT -------
(In reply to comment #1)
> It is standard behaviour.
> See details in clib documentation about getch.
> If you have a problem, please specify it exactly.
> What you expect and what you get.
>

But it is not DOS/MSC getch() compatible and the implementation is just wrong
and giving wrong return code to users.

bugzill...@www.openwatcom.org

unread,
Mar 30, 2014, 7:37:24 AM3/30/14
to openwatco...@openwatcom.org
http://bugzilla.openwatcom.org/show_bug.cgi?id=1150


pch...@vtc.vsc.edu changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1




------- Comment #3 from pch...@vtc.vsc.edu 2014-03-30 03:37 PST8PDT -------
I can confirm this problem. Open Watcom's getch on Windows is very incompatible
with Microsoft's getch. I have a program that basically doesn't work at all
when compiled with OW because getch returns entirely different values than
Microsoft's version for significant number of special keys. I realize we are
talking about behavior outside the domain of the C standard, but the
incompatibility with MS seems gratuitous here. It's been on my long TODO list
to rework getch.
0 new messages