This commit is contained in:
mterwoord_cp 2010-12-31 08:23:06 +00:00
parent b07edd35f2
commit ea87dbeb67

View file

@ -14,46 +14,13 @@ namespace MatthijsPlayground
protected override void Run()
{
//Console.Write("Input: ");
//var input = Console.ReadLine();
//Console.ForegroundColor = ConsoleColor.Green;
//Console.Write("Text typed: ");
//Console.WriteLine(input);
//Console.ForegroundColor = ConsoleColor.White;
var xVGA = new Cosmos.Hardware.VGAScreen();
xVGA.SetMode320x200x8();
xVGA.SetPaletteEntry(0, 63, 0, 0);
//if (xVGA.Colors == 256)
//{
// for (byte i = 0; i < 64; i++)
// {
// xVGA.SetPaletteEntry(i, i, 0, 0);
// xVGA.SetPaletteEntry(i + 64, 63, i, 0);
// xVGA.SetPaletteEntry(i + 128, 63, 63, i);
// xVGA.SetPaletteEntry(i + 192, (byte)(63 - i), (byte)(63 - i), (byte)(63 - i));
// }
//}
//else
//{
// for (byte i = 0; i < xVGA.Colors; i++)
// {
// byte ii = (byte)((int)i * 64 / xVGA.Colors);
// xVGA.SetPaletteEntry(i, ii, ii, ii);
// }
//}
for (uint x = 0; x < xVGA.PixelWidth; x++)
{
for (uint y = 0; y < xVGA.PixelHeight; y++)
{
xVGA.SetPixel320x200x8(x, y, 0);
}
}
var xDbg = new Cosmos.Debug.Kernel.Debugger("USer", "User");
xDbg.Send("After VGATest");
while (true)
;
Console.Write("Input: ");
var input = Console.ReadLine();
var xOldColor = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("Text typed: ");
Console.WriteLine(input);
Console.ForegroundColor = xOldColor;
}
}
}