Changeset 4780 for libcaca


Ignore:
Timestamp:
Mar 29, 2011, 10:18:16 PM (8 years ago)
Author:
Sam Hocevar
Message:

ncurses: if terminal doesn't support curs_set(2), try curs_set(1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver/ncurses.c

    r4643 r4780  
    569569static void ncurses_set_cursor(caca_display_t *dp, int flags)
    570570{
    571     curs_set(flags ? 2 : 0);
     571    if (!flags)
     572        curs_set(0);
     573    else if (curs_set(2) == ERR)
     574        curs_set(1);
    572575}
    573576
Note: See TracChangeset for help on using the changeset viewer.