MCPcopy Create free account
hub / github.com/npkgz/cli-progress / cursorSave

Method cursorSave

lib/terminal.js:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16 // save cursor position + settings
17 cursorSave(){
18 if (!this.stream.isTTY){
19 return;
20 }
21
22 // save position
23 this.stream.write('\x1B7');
24 }
25
26 // restore last cursor position + settings
27 cursorRestore(){

Callers 1

startMethod · 0.80

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected