String returns a the cursor mode in a human-readable format. This method is provisional and for informational purposes only.
()
| 85 | // String returns a the cursor mode in a human-readable format. This method is |
| 86 | // provisional and for informational purposes only. |
| 87 | func (c CursorMode) String() string { |
| 88 | return [...]string{ |
| 89 | "blink", |
| 90 | "static", |
| 91 | "hidden", |
| 92 | }[c] |
| 93 | } |
| 94 | |
| 95 | // TextInputModel is the Bubble Tea model for this text input element. |
| 96 | type TextInputModel struct { |