presto-cli/src/main/java/io/prestosql/cli/ConsolePrinter.java/ConsolePrinter/cursorUp
class ConsolePrinter:    private static String cursorUp(int lines)
    {
        return "\033[" + lines + "A";
    }