public void drawLine() throws IOException {
        String prompt = getPrompt();
        if (prompt != null) {
            rawPrint(prompt);
        }

        print(buf.buffer, 0, buf.cursor, promptLen);

        // force drawBuffer to check for weird wrap (after clear screen)
        drawBuffer();
    }