Skip to content
Snippets Groups Projects
Commit 62049656 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Change cursor to blinking unline using ANSI sequences.

Whee.
parent 7b14d903
Branches
Tags
No related merge requests found
Pipeline #6921 failed
...@@ -1003,6 +1003,7 @@ int ansi_initio_cb(void) ...@@ -1003,6 +1003,7 @@ int ansi_initio_cb(void)
if (slen > -1) if (slen > -1)
ansi_writestr_cb(seq, slen); ansi_writestr_cb(seq, slen);
} }
WriteConsoleA(h, "\x1b[3 q", 5, NULL, NULL);
} }
atexit(ansi_fixterm); atexit(ansi_fixterm);
#else #else
......
...@@ -796,6 +796,7 @@ void win32_textmode(int mode) ...@@ -796,6 +796,7 @@ void win32_textmode(int mode)
WriteConsoleA(h, seq, slen, NULL, NULL); WriteConsoleA(h, seq, slen, NULL, NULL);
} }
cio_api.options |= CONIO_OPT_PALETTE_SETTING; cio_api.options |= CONIO_OPT_PALETTE_SETTING;
WriteConsoleA(h, "\x1b[3 q", 5, NULL, NULL);
} }
} }
SetConsoleMode(h, oldmode); SetConsoleMode(h, oldmode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment