Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function Cliffy.parse
Re-export
import { Cliffy } from "https://deno.land/x/dmm@v2.1.2/tests/integration/up-to-date-deps/deps.ts";
const { parse } = Cliffy;

Parse ansi escape sequence.

Parameters

data: Uint8Array | string

Ansi escape sequence.

parse("\x04\x18");
[
KeyCode { name: "d", sequence: "\x04", ctrl: true, meta: false, shift: false },
KeyCode { name: "x", sequence: "\x18", ctrl: true, meta: false, shift: false },
]