aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Christoph Ebersbach <jceb@e-jc.de>2015-09-08 07:28:52 +0200
committerChristoph Lohmann <20h@r-36.net>2015-09-08 16:29:05 +0200
commit3ba9c8fc3f547a5762b3d4a6a16cc794446d76a3 (patch)
treeb66d11245979a4147840ce70256ce6e5ae4584b8
parent1f087aa8b70fce67e7c43f689b5fb35667b5d84c (diff)
downloadst-patched-3ba9c8fc3f547a5762b3d4a6a16cc794446d76a3.tar.bz2
st-patched-3ba9c8fc3f547a5762b3d4a6a16cc794446d76a3.tar.xz
st-patched-3ba9c8fc3f547a5762b3d4a6a16cc794446d76a3.zip
Expose cursor shape in config.def.h
Signed-off-by: Christoph Lohmann <20h@r-36.net>
-rw-r--r--config.def.h9
-rw-r--r--st.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 7129fa1..c7ce3b4 100644
--- a/config.def.h
+++ b/config.def.h
@@ -105,6 +105,15 @@ static unsigned int defaultfg = 7;
105static unsigned int defaultbg = 0; 105static unsigned int defaultbg = 0;
106static unsigned int defaultcs = 256; 106static unsigned int defaultcs = 256;
107 107
108/*
109 * Default shape of cursor
110 * 2: Block
111 * 4: Underline
112 * 6: IBeam
113 */
114
115static unsigned int cursorshape = 2;
116
108 117
109/* 118/*
110 * Default colour and shape of the mouse cursor 119 * 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
@@ -4315,7 +4315,7 @@ main(int argc, char *argv[])
4315 4315
4316 xw.l = xw.t = 0; 4316 xw.l = xw.t = 0;
4317 xw.isfixed = False; 4317 xw.isfixed = False;
4318 xw.cursor = 0; 4318 xw.cursor = cursorshape;
4319 4319
4320 ARGBEGIN { 4320 ARGBEGIN {
4321 case 'a': 4321 case 'a':