Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930package tea
// Position represents a position in the terminal.type Position struct{ X, Y int }
// CursorPositionMsg is a message that represents the terminal cursor position.type CursorPositionMsg struct { X, Y int}
// CursorShape represents a terminal cursor shape.type CursorShape int
// Cursor shapes.const ( CursorBlock CursorShape = iota CursorUnderline CursorBar)
// requestCursorPosMsg is a message that requests the cursor position.type requestCursorPosMsg struct{}
// RequestCursorPosition is a command that requests the cursor position.// The cursor position will be sent as a [CursorPositionMsg] message.// Use [WithInput] to enable input, since the reply cannot be read otherwise.func RequestCursorPosition() Msg { return requestCursorPosMsg{}}