code: def _write(self, s, s_length=None, flush=False, ignore_overflow=False,
                 err_msg=None):
          
          if not ignore_overflow:
              s_length = len(s) if s_length is None else s_length
              if err_msg is None:
                  err_msg = (
                      "Terminal has {} columns; attempted to write "
                      "a string {} of length {}.".format(
                          self.columns, repr(s), s_length)
                  )
              ensure(s_length <= self.columns, WidthOverflowError, err_msg)
          self.cursor.write(s)
          if flush:
              self.cursor.flush()
docs: Write ``s``
  
          :type  s: str|unicode
          :param s: String to write
          :param s_length: Custom length of ``s``
          :param flush: Set this to flush the terminal stream after writing
          :param ignore_overflow: Set this to ignore if s will exceed
              the terminal's width
          :param err_msg: The error message given to WidthOverflowError
              if it is triggered