1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Support SGR 2 to dim the foreground colour.

I've done this on a 'where possible' basis: in Windows paletted mode
(in case anyone is still using an old enough graphics card to need
that!) I simply haven't bothered, and will completely ignore the dim
flag.
This commit is contained in:
Simon Tatham
2017-10-05 21:02:56 +01:00
parent 4743798400
commit 1a718403d4
4 changed files with 67 additions and 29 deletions

View File

@ -3881,6 +3881,10 @@ static void term_out(Terminal *term)
compatibility(VT100AVO);
term->curr_attr |= ATTR_BOLD;
break;
case 2: /* enable dim */
compatibility(OTHER);
term->curr_attr |= ATTR_DIM;
break;
case 21: /* (enable double underline) */
compatibility(OTHER);
case 4: /* enable underline */
@ -3912,9 +3916,9 @@ static void term_out(Terminal *term)
compatibility(SCOANSI);
if (term->no_remote_charset) break;
term->sco_acs = 2; break;
case 22: /* disable bold */
case 22: /* disable bold and dim */
compatibility2(OTHER, VT220);
term->curr_attr &= ~ATTR_BOLD;
term->curr_attr &= ~(ATTR_BOLD | ATTR_DIM);
break;
case 24: /* disable underline */
compatibility2(OTHER, VT220);