Bubbles::Textarea::Model
Constructors
Class methods
Blink is a command used to initialize cursor blinking. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1561
Paste is a command for pasting from the clipboard into the text input. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1691
Instance methods
Blur removes the focus state on the model. When the model is blurred it can not receive keyboard input and the cursor will be hidden. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:731
Cursor returns a Tea cursor for real-cursor rendering. Ported from Go: vendor/bubbles/textarea/textarea.go:Cursor.
cursorLineNumber returns the line number that the cursor is on. This accounts for soft wrapped lines. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1619
Focus sets the focus state on the model. When the model is in focus it can receive keyboard input and the cursor will be hidden. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:724
Focused returns the focus state on the model. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:709
Height returns the height of the textarea. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1054
insertRune inserts a single rune at the cursor position. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:462
insertString inserts a string at the cursor position. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:455
keyMap returns the current key bindings. Ported exactly from Go: vendor/bubbles/textarea/textarea.go (KeyMap field access).
LineInfo returns the number of characters from the start of the (soft-wrapped) line and the (soft-wrapped) line width. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:992
MoveToBegin moves the cursor to the beginning of the textarea. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1060
MoveToEnd moves the cursor to the end of the textarea. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1066
PageDown moves the cursor one page down. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1077
PageUp moves the cursor one page up. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1072
totalVisualLines returns the total number of display lines across all logical lines, accounting for soft wraps. Ported from Go: vendor/bubbles/textarea/textarea.go:1666 (v2.1.0)
Update handles messages and updates the model. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1169
View returns the rendered view of the textarea with viewport. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1415
Width returns the width of the textarea. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1049