win/tty: reset background brightness when color is set to default

This commit is contained in:
Bert Belder 2012-09-14 17:50:45 +02:00
parent 1988f5e581
commit b2dc1e6d64

View File

@ -1113,6 +1113,7 @@ static int uv_tty_set_style(uv_tty_t* handle, DWORD* error) {
} else if (arg == 49) {
/* Default background color */
bg_color = 0;
bg_bright = 0;
} else if (arg >= 90 && arg <= 97) {
/* Set bold foreground color */