class_docstr: Parser for VT100 input stream.
  Data can be fed through the `feed` method and the given callback will be
  called with KeyPress objects.
  
  ::
  
      def callback(key):
          pass
      i = Vt100Parser(callback)
      i.feed('data...')
  
  :attr feed_key_callback: Function that will be called when a key is parsed.
class_docstr_tok: ["Parser","for","VT100","input","stream",".","Data","can","be","fed","through","the","`","feed","`","method","and","the","given","callback","will","be","called","with","KeyPress","objects",".",":",":","def","callback","(","key",")",":","pass","i","=","Vt100Parser","(","callback",")","i.feed","(","'data\u0001","...","'",")",":","attr","feed_key_callback",":","Function","that","will","be","called","when","a","key","is","parsed","."]
docstr: Return the key (or keys) that maps to this prefix.
docstr_tok: ["Return","the","key","(","or","keys",")","that","maps","to","this","prefix","."]
code: def _get_match(self, prefix: str) -> None | Keys | tuple[Keys, ...]:
      """
      Return the key (or keys) that maps to this prefix.
      """
      # (hard coded) If we match a CPR response, return Keys.CPRResponse.
      # (This one doesn't fit in the ANSI_SEQUENCES, because it contains
      # integer variables.)
      if _cpr_response_re.match(prefix):
          return Keys.CPRResponse
  
      elif _mouse_event_re.match(prefix):
          return Keys.Vt100MouseEvent
  
      # Otherwise, use the mappings.
      try:
          return ANSI_SEQUENCES[prefix]
      except KeyError:
          return None
  
imports: from __future__ import annotations
  import re
  from typing import Callable, Dict, Generator
  from ..key_binding.key_processor import KeyPress
  from ..keys import Keys
  from .ansi_escape_sequences import ANSI_SEQUENCES
label_desc: Use image node_id 4 for calling the Vt100Parser obj's underlying member method code with example usage: obj._get_match(prefix) and returns: Keys, ANSI_SEQUENCES, Keys, None