private void updateTerminalSize() {
    terminal.flush();
    height = terminal.getHeight();
  }
A scrolling (logging) view of the query result of a streaming SELECT statement.
samza-sql-shell/src/main/java/org/apache/samza/sql/client/cli/QueryResultLogView.java