| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Qedit/2 |
>JdBP> It's not a perfect editor, by any means (it polls the keyboard,
>JdBP> would you believe!), but it's better than a a lot of others.
Pardon my ignorance, but how do you know it polls the keyboard, and if it
(or any program) doesn't poll the keyboard, how is it supposed to know when
a key is hit?
This is what I think of when I see the phrase "poll the keyboard."
while( 1 ) {
rc = KbdCharIn( &ki, 1, 0 );
DosSleep( 5 ); // give up time slices this drops the CPU usage from
// %100 to %5 in this example
}
> JdeBP -- Registered user of QEdit 3.0 for OS/2 <
me too! :-)
Phil
--- Blue Wave/Max v2.12 OS/2 [NR]
* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 124/1208 1111 1 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808 809 @PATH: 711/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™.