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 /screen-display.c | |
parent | 9a37eb4d94ab26b2d70ead0f75ff90817c274418 (diff) |
Use the current attr/colours for filling in new areas, this fixes the echo \\033[35\;46m\\033[2J bug.
Diffstat (limited to 'screen-display.c')
-rw-r--r-- | screen-display.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/screen-display.c b/screen-display.c index 66cd4e1d..bf85f1e0 100644 --- a/screen-display.c +++ b/screen-display.c @@ -1,4 +1,4 @@ -/* $Id: screen-display.c,v 1.12 2007-12-06 10:36:01 nicm Exp $ */ +/* $Id: screen-display.c,v 1.13 2007-12-06 21:57:57 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -378,8 +378,8 @@ screen_display_insert_characters(struct screen *s, u_int px, u_int py, u_int nx) } memset(&s->grid_data[py][px], SCREEN_DEFDATA, nx); - memset(&s->grid_attr[py][px], SCREEN_DEFATTR, nx); - memset(&s->grid_colr[py][px], SCREEN_DEFCOLR, nx); + memset(&s->grid_attr[py][px], s->attr, nx); + memset(&s->grid_colr[py][px], s->colr, nx); } /* Delete characters. */ @@ -417,8 +417,8 @@ screen_display_delete_characters(struct screen *s, u_int px, u_int py, u_int nx) } memset(&s->grid_data[py][screen_size_x(s) - nx], SCREEN_DEFDATA, nx); - memset(&s->grid_attr[py][screen_size_x(s) - nx], SCREEN_DEFATTR, nx); - memset(&s->grid_colr[py][screen_size_x(s) - nx], SCREEN_DEFCOLR, nx); + memset(&s->grid_attr[py][screen_size_x(s) - nx], s->attr, nx); + memset(&s->grid_colr[py][screen_size_x(s) - nx], s->colr, nx); } /* Fill cells from another screen, with an offset. */ |