Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npkgz/cli-progress
/ cursorRestore
Method
cursorRestore
lib/terminal.js:27–34 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
26
// restore last cursor position + settings
27
cursorRestore(){
28
if
(!this.stream.isTTY){
29
return
;
30
}
31
32
// restore cursor
33
this.stream.write(
'\x1B8'
);
34
}
35
36
// show/hide cursor
37
cursor(enabled){
Callers
1
stop
Method · 0.80
Calls
1
write
Method · 0.80
Tested by
no test coverage detected