From 281dc40f1891f368873b0380c58c443669fd958c Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Wed, 23 Jan 2013 21:58:13 +0800 Subject: [PATCH] Kernel/vterm - Implimented 90-97/100-107 font modes for nyan cat :) --- KernelLand/Kernel/drv/vterm_vt100.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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]); } -- 2.20.1