public interface ITerminalConsole
extends com.vaadin.flow.component.HasElement
line event.| Modifier and Type | Interface and Description |
|---|---|
static class |
ITerminalConsole.LineEvent |
| Modifier and Type | Method and Description |
|---|---|
default com.vaadin.flow.shared.Registration |
addLineListener(com.vaadin.flow.component.ComponentEventListener<ITerminalConsole.LineEvent> listener)
Adds a line listener.
|
default CompletableFuture<String> |
getCurrentLine()
Returns the text in the current line
|
default String |
getPrompt()
Returns the command line prompt.
|
default void |
setInsertMode(boolean insertMode)
Set the insert mode.
|
default void |
setPrompt(String prompt)
Sets the command line prompt.
|
default void |
writePrompt()
Writes the command line prompt to the terminal.
|
default com.vaadin.flow.shared.Registration addLineListener(com.vaadin.flow.component.ComponentEventListener<ITerminalConsole.LineEvent> listener)
default void setInsertMode(boolean insertMode)
default CompletableFuture<String> getCurrentLine()
default void setPrompt(String prompt)
default String getPrompt()
default void writePrompt()
Copyright © 2020–2024 Flowing Code. All rights reserved.