aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShivesh Mandalia <mail@shivesh.org>2021-09-22 20:29:19 +0100
committerShivesh Mandalia <mail@shivesh.org>2021-09-22 20:29:19 +0100
commit2467e2824fb6a2bc2bf76883f8a2c7561d7af4a4 (patch)
tree7381e57a5b0aa3dd0ab1e498d4961f79ad631944
parent9e717438a1726809e1d16cabba525d611ec5b08b (diff)
downloadst-2467e2824fb6a2bc2bf76883f8a2c7561d7af4a4.tar.gz
st-2467e2824fb6a2bc2bf76883f8a2c7561d7af4a4.zip
Set the blinking cursor
-rw-r--r--config.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/config.h b/config.h
index 2ca4bc8..1d97da0 100644
--- a/config.h
+++ b/config.h
@@ -135,13 +135,20 @@ static unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
/*
- * Default shape of cursor
- * 2: Block ("█")
- * 4: Underline ("_")
- * 6: Bar ("|")
- * 7: Snowman ("☃")
+ * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81
+ * Default style of cursor
+ * 0: Blinking block
+ * 1: Blinking block (default)
+ * 2: Steady block ("█")
+ * 3: Blinking underline
+ * 4: Steady underline ("_")
+ * 5: Blinking bar
+ * 6: Steady bar ("|")
+ * 7: Blinking st cursor
+ * 8: Steady st cursor
*/
-static unsigned int cursorshape = 2;
+static unsigned int cursorstyle = 1;
+static Rune stcursor = 0x2603; /* snowman (U+2603) */
/*
* Default columns and rows numbers