public void beep() throws IOException {
        if (bellEnabled) {
            if (tputs("bell")) {
                // need to flush so the console actually beeps
                flush();
            }
        }
    }