Kernel/VTerm - Fixed wrong order for \e[H arguments
authorJohn Hodge <[email protected]>
Sun, 8 Sep 2013 14:28:08 +0000 (22:28 +0800)
committerJohn Hodge <[email protected]>
Sun, 8 Sep 2013 14:28:08 +0000 (22:28 +0800)
KernelLand/Kernel/drv/vterm_vt100.c

index c054e75..1a51a58 100644 (file)
@@ -134,9 +134,9 @@ void VT_int_ParseEscape_StandardLarge(tVTerm *Term, char CmdChar, int argc, int
        // Set cursor position
        case 'H':
                if( Term->Flags & VT_FLAG_ALTBUF )
-                       Term->AltWritePos = args[0] + args[1]*Term->TextWidth;
+                       Term->AltWritePos = args[1] + args[0]*Term->TextWidth;
                else
-                       Term->WritePos = args[0] + args[1]*Term->TextWidth;
+                       Term->WritePos = args[1] + args[0]*Term->TextWidth;
                //Log_Debug("VTerm", "args = {%i, %i}", args[0], args[1]);
                break;
        // Scroll up `n` lines

UCC git Repository :: git.ucc.asn.au