Re: kbhit

2001-05-25 Thread Mike Brownlow
Oliver J. Enders wrote: > Hi Mike, > > Just wanted to let you know. You are awesome! Thanks for having your > kbhit program on the web (in response to someone elses question two > years ago). It sure made my day. I've been trying to figure out how to > read in characters under Linux. ... I ca

Re: kbhit() MSDOS equivalent in Linux

1998-03-27 Thread Mike Brownlow
Mario Olimpio de Menezes wrote: > > Hi, > > I received a message from two students about the kbhit() C MSDOS > function equivalent in Linux. I'm not a good C programmer and could not > help them. If somebody can, please. > Thanks, and sorry for the little off-topic Debian. Here y

Re: kbhit() MSDOS equivalent in Linux

1998-03-27 Thread Nicolás Lichtmaier
> Our protocol suport, theorically yet, half duplex and we use the serial > and parallel ports. Because other caracteristcs, we need something like > kbhit function defined in conio.h of C for MSDOS. This function is like a > keypressed and we are looking for something like that because we must > e

Re: kbhit() MSDOS equivalent in Linux

1998-03-26 Thread Jens B. Jorgensen
I don't do people's homework for them but... Well there isn't a direct equivalent because in unix when you have a "terminal" session that generally means you have a "tty" devices as stdin/stdout/stderr. And, this tty device buffers input as well as things like generating signals to your process