private boolean tputs(String cap, Object... params) throws IOException {
        String str = terminal.getStringCapability(cap);
        if (str == null) {
            return false;
        }
        Curses.tputs(out, str, params);
        return true;
    }