need help...

need help...

Post by Nai-Cheng Ho Iv » Sun, 31 Jan 1993 12:10:08



My project needs a function to get a key stroke (without
typing RETURN), like the TURBO-C code shown below

        for (;;)  {
            if (!kbhit())  continue;
            switch (get_the_key())  {
                case ....

            }
        }

but I don't know how to write the functions, kbhit() and
get_the_key(), in Sun's UNIX environment.  Your source or
any suggestion would be very appreciated.

Nai-Cheng Ho
SUNY at Albany