Show the cursor if it was hidden previously. Don't forget to show the cursor at least at the end of your application. Otherwise the user might have a terminal with a permanently hidden cursor, until they reopen the terminal.
()
| 46 | // Don't forget to show the cursor at least at the end of your application. |
| 47 | // Otherwise the user might have a terminal with a permanently hidden cursor, until they reopen the terminal. |
| 48 | func (c *Cursor) Show() { |
| 49 | fmt.Fprint(c.writer, "\x1b[?25h") |
| 50 | } |
| 51 | |
| 52 | // Hide the cursor. |
| 53 | // Don't forget to show the cursor at least at the end of your application with Show. |