Module terminal.cursor.shape

Terminal cursor shape module.

Provides utilities for cursor shape handling in terminals.

Functions

set (shape) Sets the cursor shape and writes it to the terminal.

Sequences

set_seq (shape) Returns the ansi sequence for a cursor shape without writing it to the terminal.


Functions

set (shape)
Sets the cursor shape and writes it to the terminal.

Parameters:

  • shape string the shape to set, one of the keys "block", "block_blink", "underline", "underline_blink", "bar", "bar_blink"

Returns:

    true

Sequences

set_seq (shape)
Returns the ansi sequence for a cursor shape without writing it to the terminal.

Parameters:

  • shape string the shape to get, one of the keys "block", "block_blink", "underline", "underline_blink", "bar", "bar_blink"

Returns:

    string ansi sequence to write to the terminal
generated by LDoc 1.5.0