KBHIT and GETCH

Adam Rosenberg adam.rosenberg@sourceprose.com
Wed Jul 19 15:09:00 GMT 2000


    I found that most of my funky stuff from LINUX works just
fine in CYGWIN on my Windows NT box, but one area which doesn't
work is my KBHIT function.

My compile command line is "gcc -g -o g2_cyg.exe g2_cyg.c"
and then I can run g2_cyg from the command line.  It tells
me all my characters except for the arrow keys where it
times out on the [A part of ESCAPE[A for the up arrow key.
My KBHIT function isn't seeing the left bracket, but it
does just fine if I hand type ESCAPE, [, and A.

    Any ideas?  I'm kind of confused here and do not myself
make a career of programming at this level.  I'm a math guy
who does nasty algorithms and want my arrow keys to work,
so I really appreciate any help you can give me here.

Adam N. Rosenberg                    
6751 Rufe Snow Drive, Suite 350      
Watauga, Texas  76148-2331 
    1-817-281-8225 ext. 205
    1-817-281-1512 FAX

-------------- next part --------------
A non-text attachment was scrubbed...
Name: g2_cyg.c
Type: text/x-c
Size: 17667 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000719/5f5d4ff8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: G2_TERM.H
Type: text/x-c
Size: 937 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000719/5f5d4ff8/attachment-0001.bin>


More information about the Cygwin mailing list