aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-22 18:15:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-22 18:15:14 +0000
commit3ccdef3498fd1bb37c8bedfaa91f0a74047dc26f (patch)
tree11250d7347125ed89cc8fe58c7d982f15bf6968c /terminal.h
parentrender: implement cursor styles 'bar' and 'underline' (diff)
conf: make cursor's default style configurable
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index 0232388c..ad46a44e 100644
--- a/terminal.h
+++ b/terminal.h
@@ -222,6 +222,8 @@ struct font {
struct glyph_cache glyph_cache[256];
};
+enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
+
struct terminal {
pid_t slave;
int ptmx;
@@ -291,7 +293,7 @@ struct terminal {
struct coord cursor;
struct coord saved_cursor;
struct coord alt_saved_cursor;
- enum { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR } cursor_style;
+ enum cursor_style cursor_style;
bool cursor_blinking;
uint32_t input_serial;