aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configreader.vala
diff options
context:
space:
mode:
Diffstat (limited to 'configreader.vala')
-rw-r--r--configreader.vala16
1 files changed, 16 insertions, 0 deletions
diff --git a/configreader.vala b/configreader.vala
index a57a7ab..6348d5e 100644
--- a/configreader.vala
+++ b/configreader.vala
@@ -185,4 +185,20 @@ class ConfigReader {
return BLOCK;
}
}
+
+ public Vte.CursorBlinkMode read_blink(string group, string key, string default) {
+ string blink = read_string(group, key, default);
+
+ switch(blink) {
+ case "true":
+ return ON;
+ case "false":
+ return OFF;
+ case "system":
+ return SYSTEM;
+ default:
+ append_warning("invalid cursor blink setting '%s' in %s.%s".printf(blink, group, key));
+ return SYSTEM;
+ }
+ }
}