        def wait_for_input(self, timeout):
            """
            Wait until there is some input or the timeout is hit.

            :param timeout: Time to wait for input in seconds (floating point).
            """
            try:
                select.select([sys.stdin], [], [], timeout)
            except OSError:
                # Any error will almost certainly result in a a Screen.  Ignore.
                pass
Wait until there is some input or the timeout is hit.

:param timeout: Time to wait for input in seconds (floating point).
asciimatics/screen.py