diff options
author | james <> | 2008-03-06 22:51:39 +0000 |
---|---|---|
committer | james <> | 2008-03-06 22:51:39 +0000 |
commit | d0c78da668eede2e0a69c58f19ef2d8a0163c5e2 (patch) | |
tree | 3eeaee68373e523e340150c5c871d85a3f7d976f /src | |
parent | 3aaa25a4e02ff362ef6b057c597630bdbef5227b (diff) | |
download | sympathy-d0c78da668eede2e0a69c58f19ef2d8a0163c5e2.tar.gz sympathy-d0c78da668eede2e0a69c58f19ef2d8a0163c5e2.tar.bz2 sympathy-d0c78da668eede2e0a69c58f19ef2d8a0163c5e2.zip |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/ansi.c | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.48 2008/03/06 22:51:39 james + * *** empty log message *** + * * Revision 1.47 2008/03/06 21:34:09 james * *** empty log message *** * @@ -381,12 +384,12 @@ ansi_set_attr (ANSI * a, int attr) { if (attr & CRT_ATTR_UNDERLINE) { - if (a->terminal->xmit (a->terminal, "\033[4m", 4)) + if (a->terminal->xmit (a->terminal, "\033[4m", 4)!=4) err++; } else { - if (a->terminal->xmit (a->terminal, "\033[24m", 5)) + if (a->terminal->xmit (a->terminal, "\033[24m", 5)!=5) err++; } } @@ -394,12 +397,12 @@ ansi_set_attr (ANSI * a, int attr) { if (attr & CRT_ATTR_REVERSE) { - if (a->terminal->xmit (a->terminal, "\033[7m", 4)) + if (a->terminal->xmit (a->terminal, "\033[7m", 4)!=4) err++; } else { - if (a->terminal->xmit (a->terminal, "\033[27m", 5)) + if (a->terminal->xmit (a->terminal, "\033[27m", 5)!=5) err++; } } @@ -407,14 +410,14 @@ ansi_set_attr (ANSI * a, int attr) { if (attr & CRT_ATTR_BOLD) { - if (a->terminal->xmit (a->terminal, "\033[1m", 4)) + if (a->terminal->xmit (a->terminal, "\033[1m", 4)!=4) err++; } else { - if (a->terminal->xmit (a->terminal, "\033[21m", 5)) + if (a->terminal->xmit (a->terminal, "\033[21m", 5)!=5) err++; - if (a->terminal->xmit (a->terminal, "\033[22m", 5)) + if (a->terminal->xmit (a->terminal, "\033[22m", 5)!=5) err++; } } |