TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Gary Chambers
from: Russell Coker
date: 1994-12-20 18:41:20
subject: Receiving One Character

GC>Can someone provide some insight on how to get only one 
GC>character from the comm port then continue?  Sort of like a 
GC>hot key.  The DosRead(CommPort, blah, blah) API allows many 
GC>characters to be input.  This is unacceptable.

   Is there anything wrong with doing a DosRead() with a buffer size of 1?


   cya
___
 X MR/2 2.0 NR X See the Future; See OS/2.  Be the Future; Run OS/2.

--- Maximus/2 2.02
* Origin: Multi - 61-3-739-7145 (3:633/363)
SEEN-BY: 12/2442 620/243 632/103 301 341 348 386 998 633/104 252 260 353 363
SEEN-BY: 633/371 373 379 634/384 635/301 502 503 636/100 638/100 640/820
SEEN-BY: 690/660 711/409 410 413 430 807 808 809 934 942 949 712/353 515
SEEN-BY: 713/888 800/1
@PATH: 633/363 260 371 635/503 632/348 711/409 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™.