Source File
cursor.go
Belonging Package
github.com/charmbracelet/ultraviolet
package uv// CursorShape represents a terminal cursor shape.type CursorShape int// Cursor shapes.const (CursorBlock CursorShape = iotaCursorUnderlineCursorBar)// Encode returns the encoded value for the cursor shape.func ( CursorShape) ( bool) int {// We're using the ANSI escape sequence values for cursor styles.// We need to map both [style] and [steady] to the correct value.= ( * 2) + 1 //nolint:mndif ! {++}return int()}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)