Class TtyOutputMode

java.lang.Object
org.aesh.terminal.tty.TtyOutputMode
All Implemented Interfaces:
Consumer<int[]>

public class TtyOutputMode extends Object implements Consumer<int[]>
Processes TTY output by converting line feeds to carriage return + line feed sequences. This is equivalent to 'stty onlcr'.
Author:
Julien Viet
  • Constructor Details

    • TtyOutputMode

      public TtyOutputMode(Consumer<int[]> readHandler)
      Create a new TTY output mode processor.
      Parameters:
      readHandler - the handler to receive processed output
  • Method Details

    • accept

      public void accept(int[] data)
      Specified by:
      accept in interface Consumer<int[]>