Kernel/vterm - Fixed bug in \e[100m support
authorJohn Hodge (sonata) <[email protected]>
Fri, 25 Jan 2013 14:51:07 +0000 (22:51 +0800)
committerJohn Hodge (sonata) <[email protected]>
Fri, 25 Jan 2013 14:51:07 +0000 (22:51 +0800)
KernelLand/Kernel/drv/vterm_vt100.c

index 6e79101..6d123e5 100644 (file)
@@ -196,7 +196,7 @@ void VT_int_ParseEscape_StandardLarge(tVTerm *Term, char CmdChar, int argc, int
                        }
                        // Background Colour - bright
                        else if(100 <= args[argc] && args[argc] <= 107 ) {
-                               colour_idx = args[argc]-10 + 8;
+                               colour_idx = args[argc]-100 + 8;
                                Term->CurColour &= 0xFFFF8000;
                                Term->CurColour |= (Uint32)caVT100Colours[ colour_idx ];
                        }

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