-
Notifications
You must be signed in to change notification settings - Fork 16
/
cli-cursor.node.txt
16 lines (11 loc) · 1.57 KB
/
cli-cursor.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CLI-CURSOR
CLI-CURSOR.show|hide|toggle #Toggle visibility of CLI cursor, using \e[?25h and \e[?25l
([OSTREAM]) #Def OSTREAM: process.stderr
#Noop if !OSTREAM.isTTY
#hide() calls RESTORE-CURSOR
#Version 4.0.0
RESTORE-CURSOR() #Show CLI cursor (if it has been hidden), using \e[?25h, when process exits (using SIGNAL-EXIT, see its doc)
#Noop if not TTY
#Version 5.0.0