code: def feed(self, data):
          
          assert isinstance(data, binary_type)
  
          self.parser.feed(data)
  
          # Render again.
          self.cli._redraw()
  
          # When a return value has been set (enter was pressed), handle command.
          if self.cli.is_returning:
              try:
                  return_value = self.cli.return_value()
              except (EOFError, KeyboardInterrupt) as e:
                  # Control-D or Control-C was pressed.
                  logger.info('%s, closing connection.', type(e).__name__)
                  self.close()
                  return
  
              # Handle CLI command
              self._handle_command(return_value)
docs: Handler for incoming data. (Called by TelnetServer.)