Well, its working but its not very user friendly.  Must compile with the kbhit.o and -lm tag.