presto-cli/src/main/java/io/prestosql/cli/ConsolePrinter.java/ConsolePrinter/getWidth
class ConsolePrinter:    public int getWidth()
    {
        try (Terminal terminal = terminal()) {
            return terminal.getWidth();
        }
        catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }