- All Implemented Interfaces:
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 Summary
Constructors
Create a new TTY output mode processor.
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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[]>