mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
[libgsvt] gsvt_win32.c: Clear bold and bright when setting "normal" intensity. (SGR 22)
This commit is contained in:
parent
cff7086b3d
commit
2c17a8e727
@ -430,7 +430,7 @@ static int gsvt_win32_console_print_ANSI_emulate(gsvt_console *vt, const char *s
|
|||||||
// Operating System Command (OSC)
|
// Operating System Command (OSC)
|
||||||
// May be used for hyperlinks, but we can't easily support this
|
// May be used for hyperlinks, but we can't easily support this
|
||||||
// with regular Windows cmd, so skip it entirely.
|
// with regular Windows cmd, so skip it entirely.
|
||||||
// Search for a valid end sequence.
|
// Search for the end sequence: "\033\\" (ST) or "\007" (BEL)
|
||||||
for (str++; *str != '\0'; str++) {
|
for (str++; *str != '\0'; str++) {
|
||||||
if (str[0] == '\033' && str[1] == '\\') {
|
if (str[0] == '\033' && str[1] == '\\') {
|
||||||
// Found ST.
|
// Found ST.
|
||||||
@ -534,6 +534,8 @@ static int gsvt_win32_console_print_ANSI_emulate(gsvt_console *vt, const char *s
|
|||||||
case 22:
|
case 22:
|
||||||
// Normal intensity
|
// Normal intensity
|
||||||
wAttributes &= ~FOREGROUND_INTENSITY;
|
wAttributes &= ~FOREGROUND_INTENSITY;
|
||||||
|
bold = false;
|
||||||
|
bright = false;
|
||||||
break;
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
// Not underline
|
// Not underline
|
||||||
|
Loading…
Reference in New Issue
Block a user