diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-12-06 21:57:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-12-06 21:57:57 +0000 |
commit | 21d10e68940743dc6ef1d235b455b00c71540905 (patch) | |
tree | 5bd3870ee8884dd1284c47eccce1667eea0eed53 /tty.c | |
parent | 9a37eb4d94ab26b2d70ead0f75ff90817c274418 (diff) | |
download | rtmux-21d10e68940743dc6ef1d235b455b00c71540905.tar.gz rtmux-21d10e68940743dc6ef1d235b455b00c71540905.tar.bz2 rtmux-21d10e68940743dc6ef1d235b455b00c71540905.zip |
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |