Enable cursor (hidden when launched by vim)

This commit is contained in:
Jari Vetoniemi 2014-04-13 03:00:34 +03:00
parent 9c0b25f6a9
commit c2bed7689d

View File

@ -72,6 +72,7 @@ static struct curses {
int (*getmaxx)(WINDOW *win); int (*getmaxx)(WINDOW *win);
int (*getmaxy)(WINDOW *win); int (*getmaxy)(WINDOW *win);
int (*keypad)(WINDOW *win, bool bf); int (*keypad)(WINDOW *win, bool bf);
int (*curs_set)(int visibility);
int (*noecho)(void); int (*noecho)(void);
int (*raw)(void); int (*raw)(void);
int *ESCDELAY; int *ESCDELAY;
@ -175,6 +176,7 @@ static void _bmDrawCursesRender(const bmMenu *menu)
*curses.ESCDELAY = 25; *curses.ESCDELAY = 25;
curses.keypad(curses.stdscr, true); curses.keypad(curses.stdscr, true);
curses.curs_set(1);
curses.noecho(); curses.noecho();
curses.raw(); curses.raw();
@ -399,6 +401,8 @@ int _bmDrawCursesInit(struct _bmRenderApi *api)
goto function_pointer_exception; goto function_pointer_exception;
if (!bmLoadFunction(keypad)) if (!bmLoadFunction(keypad))
goto function_pointer_exception; goto function_pointer_exception;
if (!bmLoadFunction(curs_set))
goto function_pointer_exception;
if (!bmLoadFunction(noecho)) if (!bmLoadFunction(noecho))
goto function_pointer_exception; goto function_pointer_exception;
if (!bmLoadFunction(raw)) if (!bmLoadFunction(raw))