UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

87 lines (86 loc) 2.65 kB
import { ByteArray } from "../bytes.ts"; export declare namespace ControlKeys { /** ^I - Tab */ const TAB: ByteArray; /** ^J - Enter on Linux */ const LF: ByteArray; /** ^M - Enter on macOS and Windows (CRLF) */ const CR: ByteArray; /** ^H - Backspace on Linux and Windows */ const BS: ByteArray; /** ^? - Backspace on macOS */ const DEL: ByteArray; /** ^[ - Escape */ const ESC: ByteArray; /** ^C - Cancel */ const CTRL_C: ByteArray; /** ^A - Start of line */ const CTRL_A: ByteArray; /** ^E - End of line */ const CTRL_E: ByteArray; } export declare namespace NavigationKeys { const UP: ByteArray; const DOWN: ByteArray; const LEFT: ByteArray; const RIGHT: ByteArray; const HOME: ByteArray; const END: ByteArray; const PAGE_UP: ByteArray; const PAGE_DOWN: ByteArray; const INSERT: ByteArray; const DELETE: ByteArray; } export declare namespace FunctionKeys { const F1: ByteArray; const F2: ByteArray; const F3: ByteArray; const F4: ByteArray; const F5: ByteArray; const F6: ByteArray; const F7: ByteArray; const F8: ByteArray; const F9: ByteArray; const F10: ByteArray; const F11: ByteArray; const F12: ByteArray; } export declare namespace ControlSequences { /** Clear the current line */ const CLR: ByteArray; /** Clear the right side of the cursor */ const CLR_RIGHT: ByteArray; /** Clear the left side of the cursor */ const CLR_LEFT: ByteArray; /** Clear the screen from the cursor down */ const CLR_DOWN: ByteArray; /** Clear the screen from the cursor up */ const CLR_UP: ByteArray; /** Clear the entire screen */ const CLR_SCREEN: ByteArray; /** Hide the cursor */ const HIDE_CURSOR: ByteArray; /** Show the cursor */ const SHOW_CURSOR: ByteArray; /** Enable mouse tracking */ const MOUSE_ON: ByteArray; /** Disable mouse tracking */ const MOUSE_OFF: ByteArray; /** Enable mouse wheel scrolling */ const MOUSE_WHEEL_ON: ByteArray; /** Disable mouse wheel scrolling */ const MOUSE_WHEEL_OFF: ByteArray; /** Enable bracketed paste mode */ const PASTE_ON: ByteArray; /** Disable bracketed paste mode */ const PASTE_OFF: ByteArray; /** Enable line wrapping */ const WRAP_ON: ByteArray; /** Disable line wrapping */ const WRAP_OFF: ByteArray; /** Enable alternate screen buffer */ const ALT_BUFFER_ON: ByteArray; /** Disable alternate screen buffer */ const ALT_BUFFER_OFF: ByteArray; } export declare const PowerShellCommands: string[];