(self, keyboard_only=False)
Wait for character, then return it but don't drop from queue.
Wait for character, then return it but don't drop from queue.
Wait for character then return it but don t drop from queue .
def wait_char(self, keyboard_only=False):
        """Wait for character, then return it but don't drop from queue."""
        # if input stream has closed, don't wait but return empty
        # which will tell the Editor to close
        # except if we're waiting for KYBD: input
        while (
                (not self._expansion_vessel) and (self.buf.empty) and (
                    keyboard_only or (not self._input_closed and not self._stream_buffer)
                )
            ):
            self._queues.wait()
def wait_char ( self , keyboard_only = False ) : # if input stream has closed, don't wait but return empty # which will tell the Editor to close # except if we're waiting for KYBD: input while ( ( not self . _expansion_vessel ) and ( self . buf . empty ) and ( keyboard_only or ( not self . _input_closed and not self . _stream_buffer ) ) ) : self . _queues . wait ( )