Hide the cursor. Don't forget to show the cursor at least at the end of your application with Show. Otherwise the user might have a terminal with a permanently hidden cursor, until they reopen the terminal.
()
| 53 | // Don't forget to show the cursor at least at the end of your application with Show. |
| 54 | // Otherwise the user might have a terminal with a permanently hidden cursor, until they reopen the terminal. |
| 55 | func (c *Cursor) Hide() { |
| 56 | fmt.Fprintf(c.writer, "\x1b[?25l") |
| 57 | } |
| 58 | |
| 59 | // ClearLine clears the current line and moves the cursor to it's start position. |
| 60 | func (c *Cursor) ClearLine() { |