Right moves the cursor n characters to the right relative to the current position.
(n int)
| 23 | |
| 24 | // Right moves the cursor n characters to the right relative to the current position. |
| 25 | func (c *Cursor) Right(n int) { |
| 26 | if n > 0 { |
| 27 | fmt.Fprintf(c.writer, "\x1b[%dC", n) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // Left moves the cursor n characters to the left relative to the current position. |
| 32 | func (c *Cursor) Left(n int) { |