code: protected static void obtainTermSize ()
      {
          if (_tdimens == null) {
              _tdimens = TermUtil.getTerminalSize();
  
              // if we were unable to obtain our dimensions, use defaults
              if (_tdimens == null) {
                  _tdimens = new Dimension(132, 24);
              }
          }
      }
docs: Attempts to obtain the dimensions of the terminal window in which
  we're running. This is extremely platform specific, but feel free
  to add code to do the right thing for your platform.