class_docstr: Parser for VT100 input stream.
  
  Feed the data through the `feed` method and the correct callbacks of the
  `input_processor` will be called.
  
  ::
  
      def callback(key):
          pass
      i = InputStream(callback)
      i.feed('data...')
  
  :attr input_processor: :class:`~prompt_toolkit.key_binding.InputProcessor` instance.
docstr: Flush the buffer of the input stream.
  
  This will allow us to handle the escape key (or maybe meta) sooner.
  The input received by the escape key is actually the same as the first
  characters of e.g. Arrow-Up, so without knowing what follows the escape
  sequence, we don't know whether escape has been pressed, or whether
  it's something else. This flush function should be called after a
  timeout, and processes everything that's still in the buffer as-is, so
  without assuming any characters will folow.
docstr_tok: ["Flush","the","buffer","of","the","input","stream",".","This","will","allow","us","to","handle","the","escape","key","(","or","maybe","meta",")","sooner",".","The","input","received","by","the","escape","key","is","actually","the","same","as","the","first","characters","of","e.g",".","Arrow-Up",",","so","without","knowing","what","follows","the","escape","sequence",",","we","do","n't","know","whether","escape","has","been","pressed",",","or","whether","it","'s","something","else",".","This","flush","function","should","be","called","after","a","timeout",",","and","processes","everything","that","'s","still","in","the","buffer","as-is",",","so","without","assuming","any","characters","will","folow","."]
code: def flush(self):
      """
      Flush the buffer of the input stream.
  
      This will allow us to handle the escape key (or maybe meta) sooner.
      The input received by the escape key is actually the same as the first
      characters of e.g. Arrow-Up, so without knowing what follows the escape
      sequence, we don't know whether escape has been pressed, or whether
      it's something else. This flush function should be called after a
      timeout, and processes everything that's still in the buffer as-is, so
      without assuming any characters will folow.
      """
      self._input_parser.send(_Flush)
  
imports: from __future__ import unicode_literals
  import os
  import re
  import six
  import termios
  import tty
  from six.moves import range
  from ..keys import Keys
  from ..key_binding.input_processor import KeyPress
label_desc: Use image node_id 8 for calling the InputStream obj's underlying member method code with example usage: obj.flush() without return types