Expose cursor shape in config.def.h

Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
Jan Christoph Ebersbach 2015-09-08 07:28:52 +02:00 committed by Christoph Lohmann
parent 1f087aa8b7
commit 3ba9c8fc3f
2 changed files with 10 additions and 1 deletions

View file

@ -105,6 +105,15 @@ static unsigned int defaultfg = 7;
static unsigned int defaultbg = 0; static unsigned int defaultbg = 0;
static unsigned int defaultcs = 256; 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 * Default colour and shape of the mouse cursor

2
st.c
View file

@ -4315,7 +4315,7 @@ main(int argc, char *argv[])
xw.l = xw.t = 0; xw.l = xw.t = 0;
xw.isfixed = False; xw.isfixed = False;
xw.cursor = 0; xw.cursor = cursorshape;
ARGBEGIN { ARGBEGIN {
case 'a': case 'a':