code: def replace_termcodes(self, string, from_part=False, do_lt=True,
                            special=True):
          r
          return self.request('nvim_replace_termcodes', string,
                              from_part, do_lt, special)
docs: r"""Replace any terminal code strings by byte sequences.
  
          The returned sequences are Nvim's internal representation of keys,
          for example:
  
          <esc> -> '\x1b'
          <cr>  -> '\r'
          <c-l> -> '\x0c'
          <up>  -> '\x80ku'
  
          The returned sequences can be used as input to `feedkeys`.