setCursorStyle

import { setCursorStyle } from "jsr:@ende/cli/unstable-ansi";

function ยท experimental

function setCursorStyle(x: CursorStyle): string

Sets the cursor animation style.

x: CursorStyle

The cursor style to set.

Returns

The ANSI escape code to set the cursor style.

Example: Usage

import * as Ansi from "@ende/cli/unstable-ansi";

console.log(Ansi.setCursorStyle(Ansi.CursorStyle.BlinkingUnderline));

Source