diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-27 23:01:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-27 23:01:27 +0000 |
commit | f47ab8f13fd76cb1761c74d1384ce7695ebbea44 (patch) | |
tree | 4cff9ae5eba759659fe501468f62355e59e84b8d /input.c | |
parent | 43c99c2fab409e41f4c970f4f9eb0079df88a78e (diff) |
Don't nuke charset flag on [0m. Also rename DRAWING -> CHARSET flag.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.40 2007-11-27 22:12:14 nicm Exp $ */ +/* $Id: input.c,v 1.41 2007-11-27 23:01:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -432,11 +432,11 @@ input_handle_c0_control(u_char ch, struct input_ctx *ictx) input_write(ictx, TTY_CURSORMOVE, s->cy, s->cx); return; case '\016': /* SO */ - s->attr |= ATTR_DRAWING; + s->attr |= ATTR_CHARSET; input_write(ictx, TTY_ATTRIBUTES, s->attr, s->colr); return; case '\017': /* SI */ - s->attr &= ~ATTR_DRAWING; + s->attr &= ~ATTR_CHARSET; input_write(ictx, TTY_ATTRIBUTES, s->attr, s->colr); return; default: @@ -1057,7 +1057,7 @@ input_handle_sequence_sgr(struct input_ctx *ictx) switch (m) { case 0: case 10: - s->attr = 0; + s->attr &= ATTR_CHARSET; s->colr = SCREEN_DEFCOLR; break; case 1: |