mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
This commit is contained in:
parent
b07edd35f2
commit
ea87dbeb67
1 changed files with 7 additions and 40 deletions
|
|
@ -14,46 +14,13 @@ namespace MatthijsPlayground
|
||||||
|
|
||||||
protected override void Run()
|
protected override void Run()
|
||||||
{
|
{
|
||||||
//Console.Write("Input: ");
|
Console.Write("Input: ");
|
||||||
//var input = Console.ReadLine();
|
var input = Console.ReadLine();
|
||||||
//Console.ForegroundColor = ConsoleColor.Green;
|
var xOldColor = Console.ForegroundColor;
|
||||||
//Console.Write("Text typed: ");
|
Console.ForegroundColor = ConsoleColor.Green;
|
||||||
//Console.WriteLine(input);
|
Console.Write("Text typed: ");
|
||||||
//Console.ForegroundColor = ConsoleColor.White;
|
Console.WriteLine(input);
|
||||||
var xVGA = new Cosmos.Hardware.VGAScreen();
|
Console.ForegroundColor = xOldColor;
|
||||||
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)
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue