FW: KBHIT and GETCH
Adam Rosenberg
adam.rosenberg@sourceprose.com
Wed Jul 19 15:34:00 GMT 2000
I thought I would mention that "gcc -o g2_term g2_term.c"
does what I want on my RedHat Linux box. The arrow keys are
seen as arrow keys and other keys still work. That's what I
am trying to get on CygWin and I think I'm close but I have
no idea what to try next.
-----Original Message-----
From: Adam Rosenberg
Sent: Wednesday, July 19, 2000 5:13 PM
To: 'cygwin@sourceware.cygnus.com'
Cc: 'adam@psionic.mn.org'
Subject: KBHIT and GETCH
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/6064c5e6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: G2_TERM.C
Type: text/x-c
Size: 17144 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000719/6064c5e6/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: G2_TERM.H
Type: text/x-c
Size: 936 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000719/6064c5e6/attachment-0002.bin>
More information about the Cygwin
mailing list