X-Git-Url: https://git.danieliu.xyz/?p=taskasaur.git;a=blobdiff_plain;f=render.c;h=b0fb21a37183f6fd0f256d77fd01e3dce0f2c661;hp=c4812af1f126761f1f09480730c13eb9d798f9e3;hb=bc8adcf5e271186d94f15fc0c4c5db678055c5ef;hpb=1231bcf06132e735fa69870b7de2898e44efba3b diff --git a/render.c b/render.c index c4812af..b0fb21a 100644 --- a/render.c +++ b/render.c @@ -12,8 +12,7 @@ init_tscurses(void) { initscr(); cbreak(); - noecho(); - curs_set(0); + curs_off(); keypad(stdscr, TRUE); /* need to error check this */ @@ -50,6 +49,23 @@ init_tscolors(void) return 0; } +/* cursor */ +int +curs_on(void) +{ + echo(); + curs_set(1); + return 0; +} + +int +curs_off(void) +{ + noecho(); + curs_set(0); + return 0; +} + /* wins */ int create_todowin(void)