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

Method cursor

lib/terminal.js:37–47  ·  view source on GitHub ↗
(enabled)

Source from the content-addressed store, hash-verified

35
36 // show/hide cursor
37 cursor(enabled){
38 if (!this.stream.isTTY){
39 return;
40 }
41
42 if (enabled){
43 this.stream.write('\x1B[?25h');
44 }else{
45 this.stream.write('\x1B[?25l');
46 }
47 }
48
49 // change cursor positionn
50 cursorTo(x=null, y=null){

Callers 4

createMethod · 0.80
stopMethod · 0.80
startMethod · 0.80
stopMethod · 0.80

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected