X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fdrv%2Fvterm_termbuf.c;fp=KernelLand%2FKernel%2Fdrv%2Fvterm_termbuf.c;h=1a14f8252ab8481f45c3c477e36df1f4336ab7eb;hb=5f8480455a9e2172b15dfc7fb96480a68506c30d;hp=ed95480962c6e48515bdefeef43f1333f24cd41e;hpb=280a08f6c4380924b3a288d0283ef70a00f7bba9;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/drv/vterm_termbuf.c b/KernelLand/Kernel/drv/vterm_termbuf.c index ed954809..1a14f825 100644 --- a/KernelLand/Kernel/drv/vterm_termbuf.c +++ b/KernelLand/Kernel/drv/vterm_termbuf.c @@ -79,7 +79,7 @@ void VT_int_PutChar(tVTerm *Term, Uint32 Ch) { ASSERTC(wrpos->Col, <=, Term->TextWidth); VT_int_UpdateScreen( Term, 0 ); - //wrpos->Row ++; + wrpos->Row ++; wrpos->Col = 0; } @@ -124,7 +124,7 @@ void VT_int_PutChar(tVTerm *Term, Uint32 Ch) case '\0': // Ignore NULL byte return; case '\n': - LOG("Newline, update"); + LOG("Newline, update @ %i", write_pos); VT_int_UpdateScreen( Term, 0 ); // Update the line before newlining wrpos->Row ++; // TODO: Force scroll? @@ -170,11 +170,12 @@ void VT_int_PutChar(tVTerm *Term, Uint32 Ch) buffer[ write_pos ].Colour = Term->CurColour; // Update the line before wrapping if( (write_pos + 1) % Term->TextWidth == 0 ) { - LOG("Line wrap, update"); + LOG("Line wrap, update @ %i", write_pos); VT_int_UpdateScreen( Term, 0 ); + // NOTE: Code at the top of PutChar handles the actual wrapping } - write_pos ++; wrpos->Col ++; + write_pos ++; break; }