inputhook: improve stdin_ready()...
inputhook: improve stdin_ready()
- move select and msvcrt imports in the function itself
as they're only needed there
- switch on os.name for platform dependent code
- for unknow platforms, assume there's something to read