billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=96218a733cd8786b56c311481d2122b0ac50ee96

commit 96218a733cd8786b56c311481d2122b0ac50ee96
Author: Boris Faure <bill...@gmail.com>
Date:   Sun Jun 30 11:50:57 2019 +0200

    config: add item to hide cursor
---
 src/bin/config.c | 13 +++++++++++--
 src/bin/config.h |  1 +
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/bin/config.c b/src/bin/config.c
index 522d740..b205b8f 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -7,7 +7,7 @@
 #include "col.h"
 #include "utils.h"
 
-#define CONF_VER 21
+#define CONF_VER 22
 
 #define LIM(v, min, max) {if (v >= max) v = max; else if (v <= min) v = min;}
 
@@ -186,6 +186,8 @@ config_init(void)
      (edd_base, Config, "emoji_dbl_width", emoji_dbl_width, EET_T_UCHAR);
    EET_DATA_DESCRIPTOR_ADD_BASIC
      (edd_base, Config, "shine", shine, EET_T_INT);
+   EET_DATA_DESCRIPTOR_ADD_BASIC
+     (edd_base, Config, "hide_cursor", hide_cursor, EET_T_DOUBLE);
 }
 
 void
@@ -260,6 +262,7 @@ config_sync(const Config *config_src, Config *config)
    eina_stringshare_replace(&(config->theme), config_src->theme);
    config->scrollback = config_src->scrollback;
    config->tab_zoom = config_src->tab_zoom;
+   config->hide_cursor = config_src->hide_cursor;
    config->vidmod = config_src->vidmod;
    config->jump_on_keypress = config_src->jump_on_keypress;
    config->jump_on_change = config_src->jump_on_change;
@@ -571,6 +574,7 @@ config_new(void)
           }
         _add_default_keys(config);
         config->shine = 255;
+        config->hide_cursor = 5.0;
      }
    return config;
 }
@@ -699,7 +703,11 @@ config_load(const char *key)
                   config->emoji_dbl_width = EINA_TRUE;
                   EINA_FALLTHROUGH;
                   /*pass through*/
-                case CONF_VER: /* 21 */
+                case 21:
+                  config->hide_cursor = 5.0;
+                  EINA_FALLTHROUGH;
+                  /*pass through*/
+                case CONF_VER: /* 22 */
                   config->version = CONF_VER;
                   break;
                 default:
@@ -766,6 +774,7 @@ config_fork(const Config *config)
    SCPY(background);
    CPY(scrollback);
    CPY(tab_zoom);
+   CPY(hide_cursor);
    CPY(vidmod);
    CPY(jump_on_change);
    CPY(jump_on_keypress);
diff --git a/src/bin/config.h b/src/bin/config.h
index a9ef6ba..d28c445 100644
--- a/src/bin/config.h
+++ b/src/bin/config.h
@@ -57,6 +57,7 @@ struct _Config
    const char       *theme;
    const char       *background;
    double            tab_zoom;
+   double            hide_cursor;
    int               vidmod;
    int               opacity;
    int               shine;

-- 


Reply via email to