()
| 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(){ |