import { nvim_replace_termcodes } from "https://deno.land/x/denops_std@v5.0.2/function/nvim/mod.ts";
Replaces terminal codes and keycodes
(<CR>
, <Esc>
, ...) in a string with
the internal representation.
Parameters:
{str} String to be converted.
{from_part} Legacy Vim parameter. Usually true.
{do_lt} Also translate <lt>
. Ignored if special
is false.
{special} Replace keycodes
, e.g. <CR>
becomes a "\r" char.
See also: replace_termcodes cpoptions