summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 21:57:57 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 21:57:57 +0000
commit21d10e68940743dc6ef1d235b455b00c71540905 (patch)
tree5bd3870ee8884dd1284c47eccce1667eea0eed53 /tty.c
parent9a37eb4d94ab26b2d70ead0f75ff90817c274418 (diff)
Use the current attr/colours for filling in new areas, this fixes the echo \\033[35\;46m\\033[2J bug.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index aca5ce46..f422b69a 100644
--- a/tty.c
+++ b/tty.c
@@ -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;
}