| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Keyboard questions |
Hi Neil.
25-May-03 20:04:22, Jasen Betts wrote to Neil Heller
NH>> I'll be working in ANSI-standard *nix so I can't use any of the
NH>> neato DOS tricks like checking the keyboard buffer.
JB> there's stuff in the linux programming howto see the LDP
^^^^^^^^^^^^^^^^^^^^^^^
I meant the linux "Serial-Programming-HOWTO" ... AFAIK the methods it uses
are all POSIX so it should work with many other unix versions too.
although it's not all there either :-%
already-open files (such as stdin) can be put into non-blocking mode by
using fcntl()
then you need to put the terminal handler into non-canical mode to defeat the
line-buffering that's done using tcsetattr()/tcgetattr(), echoing is also
turned off in this way
likd DOS the line buffering is done by the operating system, unlike dos
there's no way to side-step it but you can turn it off.
termcap and (n)curses give higher-level console access.
there seems to be a few other ways to do the same things, i've used the
posix ones...
-=> Bye <=-
---
* Origin: I'm pink, therefore I'm SPAM. (3:640/1042)SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| 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™.