Class JediEmulator
java.lang.Object
org.springframework.shell.test.jediterm.terminal.DataStreamIteratingEmulator
org.springframework.shell.test.jediterm.terminal.emulator.JediEmulator
- All Implemented Interfaces:
Emulator
The main terminal emulator class.
Obtains data from the
TerminalDataStream
, interprets terminal ANSI escape sequences as commands and directs them
as well as plain data characters to the Terminal
-
Field Summary
Fields inherited from class org.springframework.shell.test.jediterm.terminal.DataStreamIteratingEmulator
myDataStream, myTerminal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPromptUpdatedAfterResizeFuture
(BiConsumer<Long, Runnable> taskScheduler) void
processChar
(char ch, Terminal terminal) protected void
unsupported
(char... sequenceChars) This method is used to handle unknown sequences.Methods inherited from class org.springframework.shell.test.jediterm.terminal.DataStreamIteratingEmulator
hasNext, next, resetEof
-
Constructor Details
-
JediEmulator
-
-
Method Details
-
processChar
- Specified by:
processChar
in classDataStreamIteratingEmulator
- Throws:
IOException
-
unsupported
protected void unsupported(char... sequenceChars) This method is used to handle unknown sequences. Can be overridden.- Parameters:
sequenceChars
- are the characters of the unhandled sequence following the ESC character (first ESC is excluded from the sequenceChars)
-
getPromptUpdatedAfterResizeFuture
public CompletableFuture<?> getPromptUpdatedAfterResizeFuture(BiConsumer<Long, Runnable> taskScheduler)
-