(column: number, row: number = 0)
| 91 | |
| 92 | /** @internal */ |
| 93 | export const cursorMove = (column: number, row: number = 0): string => { |
| 94 | let command = "" |
| 95 | if (row < 0) { |
| 96 | command += `${ESC}${-row}A` |
| 97 | } |
| 98 | if (row > 0) { |
| 99 | command += `${ESC}${row}B` |
| 100 | } |
| 101 | if (column > 0) { |
| 102 | command += `${ESC}${column}C` |
| 103 | } |
| 104 | if (column < 0) { |
| 105 | command += `${ESC}${-column}D` |
| 106 | } |
| 107 | |
| 108 | return command |
| 109 | } |
| 110 | |
| 111 | /** @internal */ |
| 112 | export const eraseLines = (rows: number): string => { |
nothing calls this directly
no outgoing calls
no test coverage detected