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