Term2::Components::TextInput
Inherits Term2::Model < Reference < Object
Constructors
new
SourceClass methods
Instance methods
accept_current_suggestion
Accepts the current suggestion, appending the rest of the suggestion text to the current value.
available_suggestions
Sourceblink
Sourcecompletion_style
Sourcecompletion_style=(completion_style : Style)
Sourcecurrent_suggestion
Sourcecursor
Sourcecursor=(cursor : Cursor)
Sourcecursor_end
Sourcecursor_pos
Sourcecursor_start
Sourcecursor_style
Sourcecursor_style=(cursor_style : Style)
Sourceecho_character
Sourceecho_mode
Sourceecho_mode=(echo_mode : EchoMode)
Sourceerr
Sourceinit
Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.
matched_suggestions
Sourceplaceholder
Sourceplaceholder_style
Sourceplaceholder_style=(placeholder_style : Style)
Sourcepos
Sourceposition
Sourcereset
Sourceshow_suggestions
Sourcetext_style
Sourcetext_style=(text_style : Style)
SourceUpdate is called when a message is received. Use it to inspect the message and, in response, update the model and/or send a command.
update_suggestions
Sourcevalue
Sourceview
View renders the program's UI, which is just a string. The view is rendered after every Update.
width
Source