]> git.deb.at Git - pkg/abook.git/blobdiff - ui.c
add show_cursor config option
[pkg/abook.git] / ui.c
diff --git a/ui.c b/ui.c
index d99397d4085a33747bc8ccd39e3a1f82c921a786..2799039ca11b0d7d76e146cee03081fde9ff26fa 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -375,13 +375,15 @@ get_commands()
 
        for(;;) {
                can_resize = TRUE; /* it's safe to resize now */
-               hide_cursor();
-               if( should_resize )
+               if(!opt_get_bool(BOOL_SHOW_CURSOR))
+                       hide_cursor();
+               if(should_resize)
                        refresh_screen();
                ch = getch();
-               show_cursor();
+               if(!opt_get_bool(BOOL_SHOW_CURSOR))
+                       show_cursor();
                can_resize = FALSE; /* it's not safe to resize anymore */
-               switch( ch ) {
+               switch(ch) {
                        case 'q': return;
                        case 'Q': quit_abook(QUIT_DONTSAVE);    break;
                        case 'P': print_stderr(selected_items() ?