[hackers] [st] Expose cursor shape in config.def.h || Jan Christoph Ebersbach

From: <git_AT_suckless.org>
Date: Tue, 8 Sep 2015 16:29:37 +0200 (CEST)

commit 3ba9c8fc3f547a5762b3d4a6a16cc794446d76a3
Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
AuthorDate: Tue Sep 8 07:28:52 2015 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Tue Sep 8 16:29:05 2015 +0200

    Expose cursor shape in config.def.h
    
    Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>

diff --git a/config.def.h b/config.def.h
index 7129fa1..c7ce3b4 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -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
--- a/st.c
+++ b/st.c
_AT_@ -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':
Received on Tue Sep 08 2015 - 16:29:37 CEST

This archive was generated by hypermail 2.3.0 : Tue Sep 08 2015 - 16:36:18 CEST