tExpose cursor shape in config.def.h - st - [fork] customized build of st, the … | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 3ba9c8fc3f547a5762b3d4a6a16cc794446d76a3 | |
parent 1f087aa8b70fce67e7c43f689b5fb35667b5d84c | |
Author: Jan Christoph Ebersbach <[email protected]> | |
Date: Tue, 8 Sep 2015 07:28:52 +0200 | |
Expose cursor shape in config.def.h | |
Signed-off-by: Christoph Lohmann <[email protected]> | |
Diffstat: | |
M config.def.h | 9 +++++++++ | |
M st.c | 2 +- | |
2 files changed, 10 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/config.def.h b/config.def.h | |
t@@ -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 | |
t@@ -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': |