vt/cursor.go
raw| 1 | package vt |
| 2 | |
| 3 | import uv "github.com/charmbracelet/ultraviolet" |
| 4 | |
| 5 | // CursorStyle represents a cursor style. |
| 6 | type CursorStyle int |
| 7 | |
| 8 | // Cursor styles. |
| 9 | const ( |
| 10 | CursorBlock CursorStyle = iota |
| 11 | CursorUnderline |
| 12 | CursorBar |
| 13 | ) |
| 14 | |
| 15 | // Cursor represents a cursor in a terminal. |
| 16 | type Cursor struct { |
| 17 | Pen uv.Style |
| 18 | Link uv.Link |
| 19 | |
| 20 | uv.Position |
| 21 | |
| 22 | Style CursorStyle |
| 23 | Steady bool // Not blinking |
| 24 | Hidden bool |
| 25 | } |