Left moves the cursor n characters to the left relative to the current position.
(n int)
| 30 | |
| 31 | // Left moves the cursor n characters to the left relative to the current position. |
| 32 | func (c *Cursor) Left(n int) { |
| 33 | if n > 0 { |
| 34 | fmt.Fprintf(c.writer, "\x1b[%dD", n) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // HorizontalAbsolute moves the cursor to n horizontally. |
| 39 | // The position n is absolute to the start of the line. |