public boolean hasWeirdWrap() { return terminal.hasWeirdWrap(); }
public boolean hasWeirdWrap() { return terminal.hasWeirdWrap(); }
@Override public boolean hasWeirdWrap() { return base.hasWeirdWrap(); }
public void printFilledLine(char c) { int width = 80; boolean wrapLineFull = true; if (consoleReader != null) { Terminal terminal = consoleReader.getTerminal(); width = terminal.getWidth(); wrapLineFull = terminal.hasWeirdWrap(); } print(c, width); if (wrapLineFull) { println(); } }
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); } }