This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
libcaca
mirror of
https://github.com/cacalabs/libcaca.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
7
Wiki
Activity
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
9f8e3143d2
commit
8f1c38b695
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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);
}
/*
Write
Preview
Loading…
Cancel
Save