class_docstr: ::
  
      with raw_mode(stdin):
          ''' the pseudo-terminal stdin is now used in raw mode '''
  
  We ignore errors when executing `tcgetattr` fails.
code: def __init__(self, fileno):
      self.fileno = fileno
      try:
          self.attrs_before = termios.tcgetattr(fileno)
      except termios.error:
          # Ignore attribute errors.
          self.attrs_before = None
  
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 1 to create a new raw_mode object from inherited base classes: object with example: obj = raw_mode(fileno)