code: def stop(self):
          
  
          if self.original_attributes is not None:
              termios.tcsetattr(
                  self.fd,
                  termios.TCSADRAIN,
                  self.original_attributes,
              )
docs: Restores the terminal attributes back to before setting raw mode.
  
          If the raw terminal was not started, does nothing.