peeking into stdin (programing question)

Páxina inicial
Anexos:
Mensaxe orixinal
+ (text/plain)
Borrar esta mensaxe
Responder a esta mensaxe
Autor: John (EBo) David
Data:  
Asunto: peeking into stdin (programing question)
wrote:
>
> Not sure but try kbhit() returns true if something is waiting.
>
>        if(kbhit())
>              {
>              c=getch();
>              ...
>              }


I looked around and all I could find for kbit was a reference to it
being expected as a define in Borland Builder. From this I'm guessing
that it is a Win*'ism.

ncurses cbreak() is close to what I'm looking for, but it mucked with
the IO and I wanted to avoint that... I was able to get ncurses to work
though. To compare timing diferences I'm going to try the cfmakeraw
now...

??
EBo --