From: John Hodge (sonata) Date: Wed, 23 Jan 2013 13:58:13 +0000 (+0800) Subject: Kernel/vterm - Implimented 90-97/100-107 font modes for nyan cat :) X-Git-Tag: rel0.15~597^2~9^2~9 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=281dc40f1891f368873b0380c58c443669fd958c;p=tpg%2Facess2.git Kernel/vterm - Implimented 90-97/100-107 font modes for nyan cat :) --- diff --git a/KernelLand/Kernel/drv/vterm_vt100.c b/KernelLand/Kernel/drv/vterm_vt100.c index d86ee0fb..6e791015 100644 --- a/KernelLand/Kernel/drv/vterm_vt100.c +++ b/KernelLand/Kernel/drv/vterm_vt100.c @@ -188,6 +188,18 @@ void VT_int_ParseEscape_StandardLarge(tVTerm *Term, char CmdChar, int argc, int Term->CurColour &= 0xFFFF8000; Term->CurColour |= caVT100Colours[ colour_idx ]; } + // Foreground Colour - bright + else if(90 <= args[argc] && args[argc] <= 97 ) { + colour_idx = args[argc]-90 + 8; + Term->CurColour &= 0x8000FFFF; + Term->CurColour |= (Uint32)caVT100Colours[ colour_idx ] << 16; + } + // Background Colour - bright + else if(100 <= args[argc] && args[argc] <= 107 ) { + colour_idx = args[argc]-10 + 8; + Term->CurColour &= 0xFFFF8000; + Term->CurColour |= (Uint32)caVT100Colours[ colour_idx ]; + } else { Log_Warning("VTerm", "Unknown font flag %i", args[argc]); }