Fix blinking cursor

This commit is contained in:
BitHeaven-Official 2023-03-08 14:21:58 +05:00
parent e7f11528ac
commit a76e0ea059
4 changed files with 14 additions and 7 deletions

View File

@ -154,7 +154,7 @@ static unsigned int defaultrcs = 257;
* 7: blinking st cursor * 7: blinking st cursor
* 8: steady st cursor * 8: steady st cursor
*/ */
static unsigned int cursorshape = 1; static unsigned int cursorstyle = 1;
static Rune stcursor = 0x2603; /* snowman ("☃") */ static Rune stcursor = 0x2603; /* snowman ("☃") */
/* /*

View File

@ -142,13 +142,20 @@ unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257; static unsigned int defaultrcs = 257;
/* /*
* Default shape of cursor * 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
* 2: Block ("") * Default style of cursor
* 4: Underline ("_") * 0: blinking block
* 6: Bar ("|") * 1: blinking block (default)
* 7: Snowman ("") * 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 cursorshape = 2; static unsigned int cursorstyle = 1;
static Rune stcursor = 0x2603; /* snowman ("☃") */
/* /*
* Default columns and rows numbers * Default columns and rows numbers

BIN
st

Binary file not shown.

BIN
x.o

Binary file not shown.