(n = 1)
| 142 | |
| 143 | /** Move cursor back n columns (CSI n D) */ |
| 144 | export function cursorBack(n = 1): string { |
| 145 | return n === 0 ? '' : csi(n, 'D') |
| 146 | } |
| 147 | |
| 148 | /** Move cursor to column n (1-indexed) (CSI n G) */ |
| 149 | export function cursorTo(col: number): string { |