Hi, I just realized that st implements the cursor shapes Block, IBeam and Underline. It would be nice if the default cursor shape would be configurable, i.e. because IBeam is a nice alternative to Block.
The attached patch exposes cursor shape in config.def.h. Cheers, Jan Christoph -- Jan Christoph Ebersbach I didn’t want some petty, inferior brand of righteousness that comes from keeping a list of rules when I could get the robust kind that comes from trusting Christ - God’s righteousness. Phil 3:9
Index: st/config.def.h
===================================================================
--- st/config.def.h.orig
+++ st/config.def.h
@@ -108,6 +108,15 @@ static unsigned int defaultfg = 0;
static unsigned int defaultbg = 15;
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
Index: st/st.c
===================================================================
--- st/st.c.orig
+++ st/st.c
@@ -4307,7 +4307,7 @@ main(int argc, char *argv[])
xw.l = xw.t = 0;
xw.isfixed = False;
- xw.cursor = 0;
+ xw.cursor = cursorshape;
ARGBEGIN {
case 'a':
signature.asc
Description: OpenPGP digital signature
