Expose cursor shape in config.def.h
authorJan Christoph Ebersbach <jceb@e-jc.de>
Tue, 8 Sep 2015 05:28:52 +0000 (07:28 +0200)
committerChristoph Lohmann <20h@r-36.net>
Tue, 8 Sep 2015 14:29:05 +0000 (16:29 +0200)
Signed-off-by: Christoph Lohmann <20h@r-36.net>
config.def.h
st.c

index 7129fa1..c7ce3b4 100644 (file)
@@ -105,6 +105,15 @@ static unsigned int defaultfg = 7;
 static unsigned int defaultbg = 0;
 static unsigned int defaultcs = 256;
 
+/*
+ * Default shape of cursor
+ * 2: Block
+ * 4: Underline
+ * 6: IBeam
+ */
+
+static unsigned int cursorshape = 2;
+
 
 /*
  * Default colour and shape of the mouse cursor
diff --git a/st.c b/st.c
index 7804316..530d7e4 100644 (file)
--- a/st.c
+++ b/st.c
@@ -4315,7 +4315,7 @@ main(int argc, char *argv[])
 
        xw.l = xw.t = 0;
        xw.isfixed = False;
-       xw.cursor = 0;
+       xw.cursor = cursorshape;
 
        ARGBEGIN {
        case 'a':