Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alloy_folk/deps.ts>cliffy.parse

An application installer for restriced macOS
Go to Latest
function cliffy.parse
Re-export
import { cliffy } from "https://deno.land/x/alloy_folk@v1.1.1/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 },
]