MCPcopy
hub / github.com/mathaou/termdbms / cursorView

Method cursorView

tuiutil/textinput.go:750–760  ·  view source on GitHub ↗

cursorView styles the cursor.

(v string)

Source from the content-addressed store, hash-verified

748
749// cursorView styles the cursor.
750func (m TextInputModel) cursorView(v string) string {
751 if m.blink {
752 return m.TextStyle.Render(v)
753 }
754 s := m.CursorStyle.Inline(true)
755 if !Ascii {
756 s = s.Reverse(true)
757 }
758
759 return s.Render(v)
760}
761
762// blinkCmd is an internal command used to manage cursor blinking.
763func (m *TextInputModel) blinkCmd() tea.Cmd {

Callers 2

ViewMethod · 0.95
placeholderViewMethod · 0.95

Calls 1

RenderMethod · 0.65

Tested by

no test coverage detected