presto-cli/src/main/java/io/prestosql/cli/StatusPrinter.java/StatusPrinter/discardKeys
class StatusPrinter:    private static void discardKeys(Terminal terminal)
    {
        while (readKey(terminal) >= 0) {
            // discard input
        }
    }