Cosmos/source/CommosBoot/Program.cs
kudzu_cp e937c3a39e
2008-01-10 12:26:08 +00:00

40 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cosmos.Build.Windows;
namespace CommosBoot {
class Program {
#region Build Console
// This contains code to launch the build console. Most users should not chagne this.
[STAThread]
public static void Main() {
var xBuilder = new Builder();
xBuilder.Build();
}
#endregion
// Here is where your Cosmos code goes. This is the code that will be executed during Cosmos boot.
// Write your code, and run. Cosmos build console will appear, select your target, and thats it!
public static void Init() {
Kernel.CPU.Init();
Kernel.Staging.DefaultStageQueue stages = new Cosmos.Kernel.Staging.DefaultStageQueue();
stages.Enqueue(new Prompter());
System.Console.Clear();
System.Console.BackgroundColor = ConsoleColor.Black;
System.Console.ForegroundColor = ConsoleColor.White;
System.Console.WriteLine("Hello World");
stages.Run();
System.Console.WriteLine("Done");
while (true)
;
stages.Teardown();
}
}
}