Documentation
¶
Overview ¶
Package cursor provides cursor functionality for Bubble Tea applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlinkMsg ¶
type BlinkMsg struct {
// contains filtered or unexported fields
}
BlinkMsg signals that the cursor should blink. It contains metadata that allows us to tell if the blink message is the one we're expecting.
type Model ¶
type Model struct {
BlinkSpeed time.Duration
// Style for styling the cursor block.
Style lipgloss.Style
// TextStyle is the style used for the cursor when it is hidden (when blinking).
// I.e. displaying normal text.
TextStyle lipgloss.Style
// Cursor Blink state.
Blink bool
// contains filtered or unexported fields
}
Model is the Bubble Tea model for this cursor element.
func (Model) Mode ¶ added in v0.15.0
Mode returns the model's cursor mode. For available cursor modes, see type Mode.
func (*Model) SetMode ¶ added in v0.15.0
SetMode sets the model's cursor mode. This method returns a command.
For available cursor modes, see type CursorMode.
Click to show internal directories.
Click to hide internal directories.