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

Method cursorRelativeReset

lib/terminal.js:73–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72 // relative reset
73 cursorRelativeReset(){
74 if (!this.stream.isTTY){
75 return;
76 }
77
78 // move cursor to initial line
79 _readline.moveCursor(this.stream, 0, -this.dy);
80
81 // first char
82 _readline.cursorTo(this.stream, 0, null);
83
84 // reset counter
85 this.dy = 0;
86 }
87
88 // clear to the right from cursor
89 clearRight(){

Callers 2

updateMethod · 0.80
stopMethod · 0.80

Calls 1

cursorToMethod · 0.80

Tested by

no test coverage detected