private int getInitialRows()

in src/com/pty4j/windows/winpty/WinPty.java [177:194]


  private int getInitialRows(@Nullable Integer initialRows) {
    if (initialRows != null) {
      return initialRows;
    }
    Integer rows = Integer.getInteger("win.pty.rows");
    if (rows != null) {
      return rows;
    }
    try {
      WindowsVersion.getVersion();
      // workaround for https://github.com/Microsoft/console/issues/270
      return DEFAULT_MIN_INITIAL_TERMINAL_WINDOW_HEIGHT ? 1 : 25;
    }
    catch (Exception e) {
      e.printStackTrace();
      return 25;
    }
  }