Options () { return new BaseOutputReader.Options() { @Override public BaseDataReader.SleepingPolicy policy() { // com.pty4j.PtyProcess inheritors do not implement java.io.InputStream#available return BaseDataReader.SleepingPolicy.BLOCKING; } @Override public boolean splitToLines() { return false; // prevent converting \r\n to \n to render in terminal emulator correctly } }; }