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