code: public void setMinimumSize(TerminalSize minimumSize) {
          this.minimumSize = minimumSize;
          TerminalSize virtualSize = minimumSize.max(realScreen.getTerminalSize());
          if(!minimumSize.equals(virtualSize)) {
              addResizeRequest(virtualSize);
              super.doResizeIfNecessary();
          }
          calculateViewport(realScreen.getTerminalSize());
      }
docs: Sets the minimum size we want the virtual screen to have. If the user resizes the real terminal to something
  smaller than this, the virtual screen will refuse to make it smaller and add scrollbars to the view.
  @param minimumSize Minimum size we want the screen to have