diff options
author | james <> | 2008-02-27 09:43:27 +0000 |
---|---|---|
committer | james <> | 2008-02-27 09:43:27 +0000 |
commit | 5fd44c11631c66cff497fadd9bbc81b77c7509f7 (patch) | |
tree | 8af379c5d2c769d9a2c20f0d372e9059e1a44192 /src/ansi.c | |
parent | d6c2a27d3304842fab285a4217518046b57b771b (diff) | |
download | sympathy-5fd44c11631c66cff497fadd9bbc81b77c7509f7.tar.gz sympathy-5fd44c11631c66cff497fadd9bbc81b77c7509f7.tar.bz2 sympathy-5fd44c11631c66cff497fadd9bbc81b77c7509f7.zip |
*** empty log message ***
Diffstat (limited to 'src/ansi.c')
-rw-r--r-- | src/ansi.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.34 2008/02/27 09:42:53 james + * *** empty log message *** + * * Revision 1.33 2008/02/27 09:42:21 james * *** empty log message *** * @@ -525,10 +528,10 @@ ansi_draw_line (ANSI * a, CRT_CA * cap, int y) } static void -ansi_resize_check (ANSI * a, CRT_Pos *size) +ansi_resize_check (ANSI * a, CRT_Pos * size) { - if ((size && crt_pos_cmp(a->crt.size,*size)) + if ((size && crt_pos_cmp (a->crt.size, *size)) || crt_pos_cmp (a->terminal->size, a->size)) { @@ -542,7 +545,7 @@ ansi_resize_check (ANSI * a, CRT_Pos *size) crt_reset (&a->crt); if (size) - a->crt.size =*size; + a->crt.size = *size; // FIXME: -- echos back crap? // a->terminal->xmit (a->terminal, "\033[c", 3); @@ -574,7 +577,7 @@ ansi_history (ANSI * a, History * h) { char buf[32]; int i; - int guess_scroll; + int guess_scroll; /*Do we need to catch up on history?*/ if (a->history_ptr == h->wptr) @@ -584,7 +587,7 @@ ansi_history (ANSI * a, History * h) if ((a->size.x < a->crt.size.x) || (a->size.y < a->crt.size.y)) return; - guess_scroll=a->crt.size.y-1; /*Bototm line should be a status line*/ + guess_scroll = a->crt.size.y - 1; /*Bototm line should be a status line */ ansi_force_attr_normal (a); @@ -716,7 +719,7 @@ ansi_reset (ANSI * a, CRT * c) static void ansi_terminal_reset (ANSI * a) { - CRT_Pos p = { 0, a->crt.size.y}; + CRT_Pos p = { 0, a->crt.size.y }; ansi_force_attr_normal (a); ansi_move (a, p); |