Original Post
hi, i am making a bash script in linux and i want to know is there a way if i can tell if a key has been hit. i dont want the terminal waiting for a keypress. i would do this in c++, but i dont think kbhit() works in linux because g++ gives the error: 'kbhit' was not declared in this scope. any help would be good. thanks in advanced.