HorizontalAbsolute moves the cursor to n horizontally. The position n is absolute to the start of the line.
(n int)
| 38 | // HorizontalAbsolute moves the cursor to n horizontally. |
| 39 | // The position n is absolute to the start of the line. |
| 40 | func (c *Cursor) HorizontalAbsolute(n int) { |
| 41 | n++ // Moves the line to the character after n |
| 42 | fmt.Fprintf(c.writer, "\x1b[%dG", n) |
| 43 | } |
| 44 | |
| 45 | // Show the cursor if it was hidden previously. |
| 46 | // Don't forget to show the cursor at least at the end of your application. |
no outgoing calls
no test coverage detected