From 5fd44c11631c66cff497fadd9bbc81b77c7509f7 Mon Sep 17 00:00:00 2001 From: james <> Date: Wed, 27 Feb 2008 09:43:27 +0000 Subject: *** empty log message *** --- src/ansi.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/ansi.c') diff --git a/src/ansi.c b/src/ansi.c index 42f6a4c..408efd4 100644 --- a/src/ansi.c +++ b/src/ansi.c @@ -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); -- cgit v1.2.3