class_docstr: :param recognize_paste: When True, try to discover paste actions and turn
      the event into a BracketedPaste.
class_docstr_tok: [":","param","recognize_paste",":","When","True",",","try","to","discover","paste","actions","and","turn","the","event","into","a","BracketedPaste","."]
code: def __init__(self, recognize_paste=True):
      self._fdcon = None
      self.recognize_paste = recognize_paste
  
      # When stdin is a tty, use that handle, otherwise, create a handle from
      # CONIN$.
      if sys.stdin.isatty():
          self.handle = HANDLE(
              windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)
          )
      else:
          self._fdcon = os.open("CONIN$", os.O_RDWR | os.O_BINARY)
          self.handle = HANDLE(msvcrt.get_osfhandle(self._fdcon))
  
imports: from __future__ import unicode_literals
  from ctypes import windll, pointer
  from ctypes.wintypes import DWORD, HANDLE
  from six.moves import range
  from prompt_toolkit.key_binding.input_processor import KeyPress
  from prompt_toolkit.keys import Keys
  from prompt_toolkit.mouse_events import MouseEventType
  from prompt_toolkit.win32_types import EventTypes, KEY_EVENT_RECORD, MOUSE_EVENT_RECORD, INPUT_RECORD, STD_INPUT_HANDLE
  import msvcrt
  import os
  import sys
  import six
label_desc: Use image node_id 1 to create a new ConsoleInputReader object from inherited base classes: object with example: obj = ConsoleInputReader(recognize_paste)