kbhit equivalent

Is there an equivalent for kbhit in QNX6?
(For porting some DOS code that’s using it).

Attached is what I use to achieve compability between QNX4 and QNX6 with
regards to kbhit
Markus

<acellarius@systems104.co.za> wrote in message
news:3A885263.27B9CFE4@systems104.co.za

Is there an equivalent for kbhit in QNX6?
(For porting some DOS code that’s using it).

begin 666 conio.h
M(VEN8VQU9&4@/&EO<W1R96%M+F@^“B-I;F-L=61E(#QS=&1I;RYH/@HC:6YC
M;'5D92 =6YI<W1D+F@^“B-I;F-L=61E(#QT97)M:6]S+F@^”@II;FQI;F4@
M8VAA<B!G971C:”@I"GL*“7-T<G5C=”!T97)M:6]S(’)A=U]T:6]S(#T*“7L*
M(” @("\J(&-?:69L86<@B@(" @(" @,"P(" @("\J(&-?;V9L86<@B@
M(" @(" @,"P
"2-I9F1E9B!?7U%.6$Y43U]?“B @(” OB!C7V-F;&%G(“HO
M(” @(" @(“A#4D5!1’Q(55!#3"DL”@DC96QS90H@(" @+RH@8U]C9FQA9R J
M+R @(" @(" H0U)%040I+ H)(V5N9&EF"@DC:69D968@7U]13EA.5$]?7PH@
M(" @+RH@8U]L9FQA9R J+R @(" @(" P+ H)(V5L<V4
(" @("\J(&-?;&9L
M86<@B@(" @(" @$E%6%1%3BDL"@DC96YD:68*“7T[”@H)<W1R=6-T('1E
M<FUI;W,@=&EO<SL*“71C9V5T871T<B@Q+” F=&EO<RD["@EW:&EL92 H=&-I
M<V-H87)S*#$I(#T](# I(‘M]"@ET8W-E=&%T=’(H,2P@5$-304Y/5RP@)G)A
M=U]T:6]S3L"6-H87(@8V@["@ER96%D("@Q+" F8V@L(#$I.PH)=&-S971A
M='1R*#$L(%1#4T%.3U<L(“9T:6]S3L"6-O=70N<V5T9BAI;W,Z.G5N:71B
M=68I.PH)<F5T=7)N(&-H.PI]”@II;FQI;F4@8VAA<B!G971C:&4H0I["@EC
M:&%R(&-H(#T@9V5T8V@H
3L*“6-O=70@/#P@8V@[”@ER971U<FX@8V@["GT*
M"FEN;&EN92!I;G0@:V)H:70H0I["@EI9B H=&-I<V-H87)S#$I(#X@,"D*
@"0ER971U<FX@,3L*"65L<V4*"0ER971U<FX@,#L*?0H
end

Thanks!

Markus Loffler wrote:

Attached is what I use to achieve compability between QNX4 and QNX6 with
regards to kbhit
Markus

acellarius@systems104.co.za> > wrote in message
news:> 3A885263.27B9CFE4@systems104.co.za> …
Is there an equivalent for kbhit in QNX6?
(For porting some DOS code that’s using it).

Name: conio.h

acellarius@systems104.co.za a écrit :

Thanks!

Markus Loffler wrote:

Attached is what I use to achieve compability between QNX4 and QNX6 with
regards to kbhit
Markus

acellarius@systems104.co.za> > wrote in message
news:> 3A885263.27B9CFE4@systems104.co.za> …
Is there an equivalent for kbhit in QNX6?
(For porting some DOS code that’s using it).

Name: conio.h

Good but maybe with a nanosleep in the while(), you turned on my cpu fan ;o)

Other point, I think that the file descriptor could be 0 instead of 1 no?
anyway it works ?!?

Alain.