mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Make DECSCUSR thickness configurable
This commit is contained in:
parent
93b54cfcc4
commit
ecac5ee35e
2 changed files with 10 additions and 5 deletions
|
@ -41,6 +41,11 @@ static unsigned int actionfps = 30;
|
||||||
*/
|
*/
|
||||||
static unsigned int blinktimeout = 800;
|
static unsigned int blinktimeout = 800;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* thickness of underline and bar cursors
|
||||||
|
*/
|
||||||
|
static unsigned int cursorthickness = 2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
|
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
|
||||||
* it
|
* it
|
||||||
|
|
6
st.c
6
st.c
|
@ -3591,15 +3591,15 @@ xdrawcursor(void) {
|
||||||
case 4: /* Steady Underline */
|
case 4: /* Steady Underline */
|
||||||
XftDrawRect(xw.draw, &dc.col[defaultcs],
|
XftDrawRect(xw.draw, &dc.col[defaultcs],
|
||||||
borderpx + curx * xw.cw,
|
borderpx + curx * xw.cw,
|
||||||
borderpx + (term.c.y + 1) * xw.ch - 1,
|
borderpx + (term.c.y + 1) * xw.ch - cursorthickness,
|
||||||
xw.cw, 1);
|
xw.cw, cursorthickness);
|
||||||
break;
|
break;
|
||||||
case 5: /* Blinking bar */
|
case 5: /* Blinking bar */
|
||||||
case 6: /* Steady bar */
|
case 6: /* Steady bar */
|
||||||
XftDrawRect(xw.draw, &dc.col[defaultcs],
|
XftDrawRect(xw.draw, &dc.col[defaultcs],
|
||||||
borderpx + curx * xw.cw,
|
borderpx + curx * xw.cw,
|
||||||
borderpx + term.c.y * xw.ch,
|
borderpx + term.c.y * xw.ch,
|
||||||
1, xw.ch);
|
cursorthickness, xw.ch);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue