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

x/tui/src/key_reader/unix.ts>decodeMouseSGR

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
function decodeMouseSGR
import { decodeMouseSGR } from "https://deno.land/x/tui@1.3.4/src/key_reader/unix.ts";

Decode SGR mouse mode code sequence to {MousePress} object. If it can't convert specified {code} to {MousePress} it returns undefined.

Parameters

buffer: Uint8Array
code: string

Returns

MousePress | undefined