general i/o question

看板FB_hackers作者時間17年前 (2008/05/08 00:00), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/6 (看更多)
Hi all, Sorry if its a FAQ but i don't find any answer for this topic. i need to test (NOWAIT), the presence of keypressed/depressed on a terminal and then read the scan code, like for a piano pc keyboard. my questions are as follows: 1. is it a general C function which may scan a terminal without waiting? 2. how to get the scancodes? of course i can poll tje (0x64) keyboard port on a i386 architecture, but this is not a general method, and it is suited for a distant terminal for instance. Any hint would be appreciated. thanks in advance. rmgls _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #188T8c00 (FB_hackers)
文章代碼(AID): #188T8c00 (FB_hackers)