Mail Archives: cygwin/1999/08/18/16:46:54
I have a M$-C book on my shelf and it says that the function kbhit() should
return a 0 if no characters have been struck otherwise the character-code of
the struck key (without removing the key from the KB queue).
getch() removes a single key from the KB queue (waiting for one if
necessary) and returns it character-code without echoing it to the terminal
screen.
getche() is the same but echoes the character it gets to the screen.
W. Terry Lincoln \ \ _ /
Senior Engineer \ \ |J| /
Ultimate Technology Corporation \ _|E|_
a Tridex Company (NASDAQ:trdx) \ |_ S _|
mailto:WTerryLincoln AT engineer DOT com \ |U|
http://terrylincoln.isonfire.com \ / |S| \
http://www.AngelFire.com/ny/TerryLincoln \ | | \
ICQ# 39362285 \ | |
=========================================== ~~~~~
Opinions expressed do not represent the management of UTC.
> -----Original Message-----
> From: Mumit Khan [mailto:khan AT xraylith DOT wisc DOT EDU]
> Sent: Wednesday, August 18, 1999 2:17 AM
> To: cygwin AT sourceware DOT cygnus DOT com
> Subject: Re: Porting getch() and kbdhit() ???
>
>
> Chris Faylor <cygwin AT sourceware DOT cygnus DOT com> writes:
> > Well, that's only partly true. I have no qualms about
> including stuff
> > that people need in Cygwin. Since these two functions have been
> > requested repeatedly, I'd certainly consider applying a
> patch which adds
> > this functionality to cygwin.
> >
> > There. I've asked for contributions. That should kill this thread.
> >
>
> How about the following extermely inefficient but portable
> POSIX kbdhit
> (includes testcase)?
>
> I have no idea what getch() Philippe is referring to, but probably not
> the one that's typically provided by (n)curses.
>
> ----- cut from here to end.
--- snip ----
begin 600 Warren Terry Lincoln (E-mail).vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DQI;F-O;&X[5V%R<F5N.SM-
M<BX[#0I&3CI787)R96X AT 5&5R<GD AT 3&EN8V]L;B`H12UM86EL*0T*3U)'.E54
M0SM%;F=I;F5E<FEN9PT*5$E43$4Z4V5N:6]R($5N9VEN965R#0I414P[5T]2
M2SM63TE#13HH-S$V*2`Y,C0M.34P,`T*5$5,.TA/344[5D])0T4Z*#<Q-BD@
M,S<W+3,Y-3D-"E1%3#M#14Q,.U9/24-%.B AT W,38I(#(V,2TS.34Y#0I414P[
M0T%2.U9/24-%.@T*5$5,.U=/4DL[1D%8 DOT B AT W,38I(#DR-"TQ-#,T#0I!1%([
M5T]22SH[5FEC=&]R.S$P,"!287=S;VX AT 4F]A9#M6:6-T;W([3ED[,30U-C0M
M,#`P,#M5;FET960 AT 4W1A=&5S(&]F($%M97)I8V$-"DQ!0D5,.U=/4DL[14Y#
M3T1)3D<]455/5$5$+5!224Y404),13I6:6-T;W(],$0],$$Q,#`@4F%W<V]N
M(%)O860],$0],$%6:6-T;W(L($Y9(#$T-38T+3`P,#`],$0],$%5;FET960@
M4W1A=&5S(&]F/0T*($%M97)I8V$-"D%$4CM(3TU%.CL[,3`P($-O=7)T<VAI
M<F4 AT 3&%N93M096YF:65L9#M.63LQ,#4R-BTR-C<X.U5N:71E9"!3=&%T97,@
M;V8 AT 06UE<FEC80T*3$%"14P[2$]-13M%3D-/1$E.1SU154]4140M4%))3E1!
M0DQ%.C$P,"!#;W5R='-H:7)E($QA;F4],$0],$%096YF:65L9"P AT 3ED@,3`U
M,C8M,C8W.#TP1#TP055N:71E9"!3=&%T97,@;V8 AT 06UE<FD]#0IC80T*14U!
M24P[4%)%1CM-4SI53%1)34%412]55$-03R],:6YC;VQN5`T*4D56.C$Y.3DP
8,3(Q5#$S,S8P,UH-"D5.1#I60T%21`T*
`
end
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -