Use the current attr/colours for filling in new areas, this fixes the echo \\033[35\;46m\\033[2J bug.

This commit is contained in:
Nicholas Marriott
2007-12-06 21:57:57 +00:00
parent 9a37eb4d94
commit 21d10e6894
5 changed files with 21 additions and 52 deletions

8
tty.c
View File

@ -1,4 +1,4 @@
/* $Id: tty.c,v 1.14 2007-12-06 21:26:22 nicm Exp $ */
/* $Id: tty.c,v 1.15 2007-12-06 21:57:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -73,8 +73,8 @@ tty_open(struct tty *tty, char **cause)
tty->in = buffer_create(BUFSIZ);
tty->out = buffer_create(BUFSIZ);
tty->attr = SCREEN_DEFATTR;
tty->colr = SCREEN_DEFCOLR;
tty->attr = 0;
tty->colr = 0x70;
tty_keys_init(tty);
@ -546,7 +546,7 @@ tty_attributes(struct tty *tty, u_char attr, u_char colr)
exit_alt_charset_mode != NULL)
tty_puts(tty, exit_alt_charset_mode);
tty_puts(tty, exit_attribute_mode);
tty->colr = 0x88;
tty->colr = 0x70;
tty->attr = 0;
}