How to kbhit() with gcc

Dear All

Watcom has kbhit() to check for a key press, has anyone implemented
something similar that will work in rtp/neutrino.

Rod

Rodney Stevens
CSIRO Minerals

Phone 61 2 97106701
Fax 61 2 97106789
Email rod.stevens@csiro.au

Personal Homepage
http://sites.netscape.net/rodjohnstevens/homepage

Here is a little piece of code that I use.
Markus

“Rodney Stevens” <rodney.stevens@minerals.csiro.au> wrote in message
news:a4ephf$s0d$1@inn.qnx.com

Dear All

Watcom has kbhit() to check for a key press, has anyone implemented
something similar that will work in rtp/neutrino.

Rod

Rodney Stevens
CSIRO Minerals

Phone 61 2 97106701
Fax 61 2 97106789
Email > rod.stevens@csiro.au

Personal Homepage
http://sites.netscape.net/rodjohnstevens/homepage
\

begin 666 conio.h
M(VEN8VQU9&4@/&EO<W1R96%M+F@^#0HC:6YC;‘5D92 <W1D:6\N:#X-"B-I
M;F-L=61E(#QU;FES=&0N:#X-"B-I;F-L=61E(#QT97)M:6]S+F@^#0H-"FEN
M;&EN92!C:&%R(&=E=&-H*"D-“GL-”@ES=’)U8W0@=&5R;6EO<R!R87=?=&EO
M<R ]#0H)>PT*(" @("\J(&-?:69L86<@B@(" @(" @,"P-“B @(” OB!C
M7V]F;&%G(“HO(” @(" @(# L#0H)(VEF9&5F(%]?44Y83E1/7U-“B @(” O
MB!C7V-F;&%G(“HO(” @(" @("A#4D5!1’Q(55!#3"DL#0H)(V5L<V4-“B @
M(” O
B!C7V-F;&%G(“HO(” @(" @(“A#4D5!1"DL#0H)(V5N9&EF#0H)(VEF
M9&5F(%]?44Y83E1/7U-“B @(” OB!C7VQF;&%G(“HO(” @(" @(# L#0H)
M(V5L<V4-“B @(” O
B!C7VQF;&%G(“HO(” @(” @(“A)15A414XI+ T*“2-E
M;F1I9@T*“7T[#0H-”@ES=’)U8W0@=&5R;6EO<R!T:6]S.PT*“71C9V5T871T
M<B@Q+” F=&EO<RD[#0H)=VAI;&4@'1C:7-C:&%R<R@Q2 ]/2 P2![?0T
M"71C<V5T871T<B@Q+”!40U-!3D]7+” F<F%W7W1I;W,I.PT*“6-H87(@8V@[
M#0H)<F5A9” H,2P@)F-H+" Q3L-"@ET8W-E=&%T=’(H,2P@5$-304Y/5RP@
M)G1I;W,I.PT
"6-O=70N<V5T9BAI;W,Z.G5N:71B=68I.PT*“7)E='5R;B!C
M:#L-“GT-”@T*:6YL:6YE(&-H87(@9V5T8VAE*“D-“GL-”@EC:&%R(&-H(#T@
M9V5T8V@H3L-"@EC;W5T(#P(&-H.PT"7)E='5R;B!C:#L-“GT-”@T*:6YL
M:6YE(&EN=”!K8FAI=”@I#0I[#0H):68@'1C:7-C:&%R<R@Q2 ^(# I#0H)
C"7)E='5R;B Q.PT*“65L<V4-”@D)<F5T=7)N(# [#0I]#0H
end

Markus

Sorry it took so long to say thanks. Developed my own solution, but will
compare mine with yours for future reference.

Rod

“Markus Loffler” <markus@loffler.de> wrote in message
news:a4gk71$939$1@inn.qnx.com

Here is a little piece of code that I use.
Markus

“Rodney Stevens” <> rodney.stevens@minerals.csiro.au> > wrote in message
news:a4ephf$s0d$> 1@inn.qnx.com> …
Dear All

Watcom has kbhit() to check for a key press, has anyone implemented
something similar that will work in rtp/neutrino.

Rod

Rodney Stevens
CSIRO Minerals

Phone 61 2 97106701
Fax 61 2 97106789
Email > rod.stevens@csiro.au

Personal Homepage
http://sites.netscape.net/rodjohnstevens/homepage


\