Module terminal.cursor.visible
Terminal cursor visibility module.
Provides utilities for cursor visibility in terminals.
Functions
set ([visible=true]) | Shows or hides the cursor and writes it to the terminal. |
Sequences
set_seq ([visible=true]) | Returns the ansi sequence to show/hide the cursor without writing it to the terminal. |
Functions
- set ([visible=true])
-
Shows or hides the cursor and writes it to the terminal.
Parameters:
- visible boolean true to show, false to hide (default true)
Returns:
-
true
Sequences
- set_seq ([visible=true])
-
Returns the ansi sequence to show/hide the cursor without writing it to the terminal.
Parameters:
- visible boolean true to show, false to hide (default true)
Returns:
-
string
ansi sequence to write to the terminal