public void printMultiLine(String text, boolean wrap, boolean paging) throws IOException { if (wrap) { int width = 80; boolean wrapLineFull = true; if (consoleReader != null) { Terminal terminal = consoleReader.getTerminal(); width = terminal.getWidth(); wrapLineFull = terminal.hasWeirdWrap(); } text = WordUtil.wordWrap(text, width, wrapLineFull); } if (paging) { paging(text); } else { println(text); } }