]> git.armaanb.net Git - st.git/commitdiff
Snowman is everywhere.
authorChristoph Lohmann <20h@r-36.net>
Mon, 5 Oct 2015 20:59:04 +0000 (22:59 +0200)
committerChristoph Lohmann <20h@r-36.net>
Mon, 5 Oct 2015 20:59:04 +0000 (22:59 +0200)
config.def.h
st.c

index 342c9d40efe0f7960a57edafb129efc50babf1f4..89732b4ee30b3f473eb64dcff453800e00393ac0 100644 (file)
@@ -111,6 +111,7 @@ static unsigned int defaultrcs = 257;
  * 2: Block
  * 4: Underline
  * 6: IBeam
+ * 7: Snowman
  */
 static unsigned int cursorshape = 2;
 
diff --git a/st.c b/st.c
index 782d18e199cdb97022488887ed85d7b8d39b2996..4ead319dc0f07cc2dced9a2ba905ed37a22df70b 100644 (file)
--- a/st.c
+++ b/st.c
@@ -3863,6 +3863,8 @@ xdrawcursor(void)
        /* draw the new one */
        if (xw.state & WIN_FOCUSED) {
                switch (xw.cursor) {
+               case 7: /* st extension: snowman */
+                       utf8decode("☃", &g.u, UTF_SIZ);
                case 0: /* Blinking Block */
                case 1: /* Blinking Block (Default) */
                case 2: /* Steady Block */