Adding blinking cursor patch ref. #20
This commit is contained in:
parent
8f79391f16
commit
ce05a34de1
4 changed files with 91 additions and 6 deletions
18
config.def.h
18
config.def.h
|
|
@ -175,6 +175,23 @@ unsigned int defaultbg = 258;
|
|||
unsigned int defaultcs = 256;
|
||||
unsigned int defaultrcs = 257;
|
||||
|
||||
#if BLINKING_CURSOR_PATCH
|
||||
/*
|
||||
* https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81
|
||||
* Default style of cursor
|
||||
* 0: Blinking block
|
||||
* 1: Blinking block (default)
|
||||
* 2: Steady block ("â–ˆ")
|
||||
* 3: Blinking underline
|
||||
* 4: Steady underline ("_")
|
||||
* 5: Blinking bar
|
||||
* 6: Steady bar ("|")
|
||||
* 7: Blinking st cursor
|
||||
* 8: Steady st cursor
|
||||
*/
|
||||
static unsigned int cursorstyle = 1;
|
||||
static Rune stcursor = 0x2603; /* snowman (U+2603) */
|
||||
#else
|
||||
/*
|
||||
* Default shape of cursor
|
||||
* 2: Block ("█")
|
||||
|
|
@ -183,6 +200,7 @@ unsigned int defaultrcs = 257;
|
|||
* 7: Snowman ("☃")
|
||||
*/
|
||||
static unsigned int cursorshape = 2;
|
||||
#endif // BLINKING_CURSOR_PATCH
|
||||
|
||||
/*
|
||||
* Default columns and rows numbers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue