Interface ITerminalConsole
- All Superinterfaces:
HasElement,Serializable
- All Known Implementing Classes:
XTerm
Add console support to XTerm. This provides handling of cursor, home/end, insert, delete and
backspace keys, as well as a
line event.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault RegistrationAdds a line listener.default CompletableFuture<String>Returns the text in the current linedefault StringReturns the command line prompt.default voidsetInsertMode(boolean insertMode) Set the insert mode.default voidSets the command line prompt.default voidWrites the command line prompt to the terminal.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Method Details
-
addLineListener
Adds a line listener. The listener is called when a line feed is intered in the console. -
setInsertMode
default void setInsertMode(boolean insertMode) Set the insert mode. -
getCurrentLine
Returns the text in the current line -
setPrompt
Sets the command line prompt. -
getPrompt
Returns the command line prompt. -
writePrompt
default void writePrompt()Writes the command line prompt to the terminal.
-