Poll input from terminal

miran46 wrote on Wednesday, June 24, 2015:

Hi, is there any good way of polling keyboard input from the terminal/console? The reason for asking is that I have a hidden rendering window and would like to be able to unhide it or exit the application in a clean way.

Thanks for any help or advice.