public class Kernel : Sys.Kernel
{
Canvas canv;
Terminal term;
protected override void BeforeRun()
{
canv = FullScreenCanvas.GetFullScreenCanvas(new Mode(1280,720,ColorDepth.ColorDepth32));
term = new Terminal(canv.Mode.Width, canv.Mode.Height);
Console.SetOut(term);
Console.WriteLine("§4Hello, §2World!");
}
protected override void Run()
{
canv.Clear();
Console.Write("Input: ");
var input = term.NonBlockingReadline();
Console.Write("Text typed: ");
Console.WriteLine(input);
canv.DrawImage(term.Draw(Color.Black),0,0);
canv.Display();
Heap.Collect();
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
Samma2009/Open-Term
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published