Browse Source

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

tags/v0.99.beta18
Sam Hocevar sam 13 years ago
parent
commit
8f1c38b695
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      caca/driver/ncurses.c

+ 4
- 1
caca/driver/ncurses.c View File

@@ -568,7 +568,10 @@ static int ncurses_get_event(caca_display_t *dp, caca_privevent_t *ev)

static void ncurses_set_cursor(caca_display_t *dp, int flags)
{
curs_set(flags ? 2 : 0);
if (!flags)
curs_set(0);
else if (curs_set(2) == ERR)
curs_set(1);
}

/*


Loading…
Cancel
Save