private static void sendEOFToPtyProcess(OutputStream outputStream) {
    if (outputStream != null) {
      try {
        outputStream.write(Ascii.EOT);
        outputStream.flush();
      }
      catch (IOException ignored) {
      }
    }
  }
private static void sendEOFToPtyProcess(OutputStream outputStream)