Change is_cleared to is_clear to avoid a conflict with curses.