Skip to main content
Module

x/ansi/cursor.ts

ANSI escape codes for manipulating the terminal
Latest
import * as ansi from "https://deno.land/x/ansi@1.0.1/cursor.ts";

Functions

moves cursor left # columns (default 1).

moves cursor down # lines (default 1).

moves cursor right # columns (default 1).

Reports the cursor position (CPR) to the application as (as though typed at the keyboard)

DECTCEM Hides the cursor.

Set the position of the cursor relative to its current position.

Moves cursor to beginning of the line n (default 1) lines down.

Moves cursor to beginning of the line n (default 1) lines up.

restores the cursor to the last saved position

saves the current cursor position

DECTCEM Shows the cursor, from the VT320.

moves cursor to line #, column #

moves cursor up # lines (default 1).