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

Method cursorRelative

lib/terminal.js:60–70  ·  view source on GitHub ↗
(dx=null, dy=null)

Source from the content-addressed store, hash-verified

58
59 // change relative cursor position
60 cursorRelative(dx=null, dy=null){
61 if (!this.stream.isTTY){
62 return;
63 }
64
65 // store current position
66 this.dy = this.dy + dy;
67
68 // move cursor relative
69 _readline.moveCursor(this.stream, dx, dy);
70 }
71
72 // relative reset
73 cursorRelativeReset(){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected