##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-08/13:24-0400 ##+ # # kbhit.icn, see if there is a keyboard event pending # procedure main() # eat any stray characters while kbhit() do getch() delay(1000) write() if kbhit() then write("key press pending:", image(getch())) else write("no keys pressed during delay") end