TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Timo Sirainen
from: Daniel Lynes
date: 1996-07-22 11:20:12
subject: Keyboard

Hello Timo!

20 Jul 96 22:46, Timo Sirainen wrote to All:

 TS> Why KbdCharIn() (or getch) command doesn't notice any Ctrl-S or
 TS> Ctrl-P presses? I guess it has something to do with signals (or
 TS> bugs ;) ..? I'm using Watcom 10.0.

Make sure you clear the asciicharcode and scancode values between calls of
KbdCharIn().  For some reason, IBM decided to declare the structure passed to
this function as static, so it keeps values between calls.  You need to
explicitly reset the values.

Daniel

internet:  dbl{at}eznet.ca

... Epitaph on a gravestone: Cheerio, see you soon.

--- GoldED/2 2.42.G0615+
* Origin: Enitharmon/2 Beta Home Site 604-527-0195 (1:153/8028)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 153/8028 831 800 270/101 712/515 711/808 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™.