X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fansi.c;h=4113a36b773aa8aeff72dccd8a3d9f023d970026;hb=3e72a1f6fc28777c26e4fb109867bd2a3c7b89b0;hp=42f6a4c650476b752907670e96b36dbfcbc55c1d;hpb=76292c6be7fcbabad9ab8687eb01f3af51568a9b;p=sympathy.git diff --git a/src/ansi.c b/src/ansi.c index 42f6a4c..4113a36 100644 --- a/src/ansi.c +++ b/src/ansi.c @@ -10,6 +10,12 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.35 2008/02/28 16:57:51 james + * *** empty log message *** + * + * 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 +531,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 +548,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 +580,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 +590,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 +722,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); @@ -945,6 +951,7 @@ ansi_update (ANSI * a, Context * c) { ansi_history (a, c->h); ansi_draw (a, &c->v->crt); + tty_length(a->terminal,c->v->crt.size.y); } static void