diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-13 03:00:34 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-13 03:00:34 +0300 |
commit | c2bed7689d1d97e7bfc0ab52e028e290ee0b3f0e (patch) | |
tree | b5842b4eb2448be7378c9721d54e89ccb1ea5fd2 /lib/draw | |
parent | 9c0b25f6a9f7e0a0c2f8b6a4608aab68e5e6a909 (diff) | |
download | bemenu-c2bed7689d1d97e7bfc0ab52e028e290ee0b3f0e.tar.gz bemenu-c2bed7689d1d97e7bfc0ab52e028e290ee0b3f0e.tar.bz2 bemenu-c2bed7689d1d97e7bfc0ab52e028e290ee0b3f0e.zip |
Enable cursor (hidden when launched by vim)
Diffstat (limited to 'lib/draw')
-rw-r--r-- | lib/draw/curses.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/draw/curses.c b/lib/draw/curses.c index 7d91d36..0304dd5 100644 --- a/lib/draw/curses.c +++ b/lib/draw/curses.c @@ -72,6 +72,7 @@ static struct curses { int (*getmaxx)(WINDOW *win); int (*getmaxy)(WINDOW *win); int (*keypad)(WINDOW *win, bool bf); + int (*curs_set)(int visibility); int (*noecho)(void); int (*raw)(void); int *ESCDELAY; @@ -175,6 +176,7 @@ static void _bmDrawCursesRender(const bmMenu *menu) *curses.ESCDELAY = 25; curses.keypad(curses.stdscr, true); + curses.curs_set(1); curses.noecho(); curses.raw(); @@ -399,6 +401,8 @@ int _bmDrawCursesInit(struct _bmRenderApi *api) goto function_pointer_exception; if (!bmLoadFunction(keypad)) goto function_pointer_exception; + if (!bmLoadFunction(curs_set)) + goto function_pointer_exception; if (!bmLoadFunction(noecho)) goto function_pointer_exception; if (!bmLoadFunction(raw)) |