Hi Christoph, Thank you for the hint. Attached is the patch in git format.
Cheers, Jan Christoph On 09/07/2015 08:55 PM, Christoph Lohmann wrote: > Greetings. > > On Mon, 07 Sep 2015 20:55:46 +0200 Jan Christoph Ebersbach <j...@e-jc.de> > wrote: >> 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. > > Thanks for sending in the patch. > > Could you please make it a git‐format‐patch so your name will be in the > commit log? > > > Sincerely, > > Christoph Lohmann > > -- 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
From e7c8461ffdeb13f0a583d00a9dc31b1bb7b63eaa Mon Sep 17 00:00:00 2001 From: Jan Christoph Ebersbach <j...@e-jc.de> Date: Tue, 8 Sep 2015 07:28:52 +0200 Subject: [PATCH] Expose cursor shape in config.def.h --- config.def.h | 9 +++++++++ st.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 930e468..b42aa74 100644 --- a/config.def.h +++ b/config.def.h @@ -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 256f8f5..7f4409b 100644 --- a/st.c +++ b/st.c @@ -4306,7 +4306,7 @@ main(int argc, char *argv[]) xw.l = xw.t = 0; xw.isfixed = False; - xw.cursor = 0; + xw.cursor = cursorshape; ARGBEGIN { case 'a': -- 2.5.1
signature.asc
Description: OpenPGP digital signature