java.lang.Object
org.springframework.shell.test.jediterm.terminal.DataStreamIteratingEmulator
org.springframework.shell.test.jediterm.terminal.emulator.JediEmulator
All Implemented Interfaces:
Emulator

public class JediEmulator extends DataStreamIteratingEmulator
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

  • Constructor Details

  • Method Details

    • processChar

      public void processChar(char ch, Terminal terminal) throws IOException
      Specified by:
      processChar in class DataStreamIteratingEmulator
      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)