X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fdrv%2Fvterm_termbuf.c;h=89511cc88a9b420f7105b919b50c4a7e22fa84d6;hb=eddfdcfdb2f702313954d28e98efcc27bdd145e8;hp=525f1a4b3d0034ede417839c2ed189eb7dc83dec;hpb=a88ba0c5436470438a63241b126f926968ef558f;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/drv/vterm_termbuf.c b/KernelLand/Kernel/drv/vterm_termbuf.c index 525f1a4b..89511cc8 100644 --- a/KernelLand/Kernel/drv/vterm_termbuf.c +++ b/KernelLand/Kernel/drv/vterm_termbuf.c @@ -21,14 +21,11 @@ void VT_int_PutString(tVTerm *Term, const Uint8 *Buffer, Uint Count) for( i = 0; i < Count; i++ ) { // Handle escape sequences - if( Buffer[i] == 0x1B && Count - i > 1 ) + int ret = VT_int_ParseEscape(Term, (const char*)&Buffer[i], Count-i); + if( ret > 0 ) { - int ret = VT_int_ParseEscape(Term, (const char*)&Buffer[i+1], Count-(i+1)); - if( ret > 0 ) - { - i += ret; - continue; - } + i += ret; + continue; } // Fast check for non UTF-8