code: def _end_escape_sequence(self, char):
          
  
          num = ord(char)
          if num in self.sequence:
              self.dispatch(self.sequence[num], *self.params)
          self.state = "stream"
          self.current_param = ""
          self.params = []
docs: Handle the end of an escape sequence. The final character in an escape
          sequence is the command to execute, which corresponds to the event that
          is dispatched here.