From d124ea586616d64499d54f56645616d24fe1f797 Mon Sep 17 00:00:00 2001 From: james <> Date: Thu, 7 Feb 2008 12:21:16 +0000 Subject: *** empty log message *** --- src/ansi.c | 7 ++++++- src/vt102.c | 15 +++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/ansi.c b/src/ansi.c index 30022ed..f70a2d5 100644 --- a/src/ansi.c +++ b/src/ansi.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.14 2008/02/07 12:21:16 james + * *** empty log message *** + * * Revision 1.13 2008/02/07 12:16:04 james * *** empty log message *** * @@ -257,7 +260,9 @@ ansi_set_color (ANSI * a, int color) } i=sprintf(buf,"\033[%d;%dm",fg,bg); +#if 0 fprintf(stderr,"Color set to %d %d %x\n",fg,bg,color); +#endif ansi_write (a,buf,i); a->color=color; @@ -634,7 +639,7 @@ ansi_dispatch (ANSI * a, VT102 * v,TTY *t) return -1; #endif -#if 1 +#if 0 if (*buf == 1) return 1; #endif diff --git a/src/vt102.c b/src/vt102.c index 869cca6..2cae51d 100644 --- a/src/vt102.c +++ b/src/vt102.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.21 2008/02/07 12:21:16 james + * *** empty log message *** + * * Revision 1.20 2008/02/07 12:16:04 james * *** empty log message *** * @@ -621,7 +624,7 @@ vt102_change_attr (VT102 * v, char *na) case 35: case 36: case 37: - v->color &= CRT_COLOR_FG_MASK; + v->color &= ~CRT_COLOR_FG_MASK; v->color |= ((a-30) << CRT_COLOR_FG_SHIFT) & CRT_COLOR_FG_MASK; break; case 90: @@ -632,12 +635,12 @@ vt102_change_attr (VT102 * v, char *na) case 95: case 96: case 97: - v->color &= CRT_COLOR_FG_MASK; + v->color &= ~CRT_COLOR_FG_MASK; v->color |= (((a-90)|CRT_COLOR_INTENSITY) << CRT_COLOR_FG_SHIFT) & CRT_COLOR_FG_MASK; break; case 39: case 99: - v->color &= CRT_COLOR_FG_MASK; + v->color &= ~CRT_COLOR_FG_MASK; v->color |= (CRT_FGCOLOR_NORMAL << CRT_COLOR_FG_SHIFT) & CRT_COLOR_FG_MASK; break; case 40: @@ -648,7 +651,7 @@ vt102_change_attr (VT102 * v, char *na) case 45: case 46: case 47: - v->color &= CRT_COLOR_BG_MASK; + v->color &= ~CRT_COLOR_BG_MASK; v->color |= ((a-40) << CRT_COLOR_BG_SHIFT) & CRT_COLOR_BG_MASK; break; case 100: @@ -659,12 +662,12 @@ vt102_change_attr (VT102 * v, char *na) case 105: case 106: case 107: - v->color &= CRT_COLOR_BG_MASK; + v->color &= ~CRT_COLOR_BG_MASK; v->color |= (((a-100)|CRT_COLOR_INTENSITY) << CRT_COLOR_BG_SHIFT) & CRT_COLOR_BG_MASK; break; case 49: case 109: - v->color &= CRT_COLOR_BG_MASK; + v->color &= ~CRT_COLOR_BG_MASK; v->color |= (CRT_BGCOLOR_NORMAL << CRT_COLOR_BG_SHIFT) & CRT_COLOR_BG_MASK; break; -- cgit v1.2.3