cursorView styles the cursor.
(v string)
| 748 | |
| 749 | // cursorView styles the cursor. |
| 750 | func (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. |
| 763 | func (m *TextInputModel) blinkCmd() tea.Cmd { |
no test coverage detected