From: John Hodge Date: Wed, 23 Sep 2009 08:20:45 +0000 (+0800) Subject: Debugging VT_int_ClearLine X-Git-Tag: rel0.06~528 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a82db23f8f051c7095f41e2503a77d7844a95964;p=tpg%2Facess2.git Debugging VT_int_ClearLine --- diff --git a/Kernel/drv/vterm.c b/Kernel/drv/vterm.c index 6ed0cdd5..bf518c50 100644 --- a/Kernel/drv/vterm.c +++ b/Kernel/drv/vterm.c @@ -363,12 +363,13 @@ void VT_int_PutString(tVTerm *Term, Uint8 *Buffer, Uint Count) void VT_int_ClearLine(tVTerm *Term, int Num) { int i; - memset(Term->Text, 0, Term->Width*Term->Height*VT_SCROLLBACK*sizeof(tVT_Char)); + ENTER("pTerm iNum", Term, Num); for( i = Term->Width; i++; ) { Term->Text[ Num*Term->Width + i ].Ch = 0; Term->Text[ Num*Term->Width + i ].Colour = Term->CurColour; } + LEAVE('-'); } /** @@ -413,7 +414,7 @@ int VT_int_ParseEscape(tVTerm *Term, char *Buffer) { case 2: { - int i = Term->Height * VT_SCROLLBACK;; + int i = Term->Height * VT_SCROLLBACK; while( i-- ) VT_int_ClearLine(Term, i); Term->WritePos = 0; Term->ViewPos = 0;