mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
23 lines
No EOL
596 B
C#
23 lines
No EOL
596 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Sys = Cosmos.System;
|
|
|
|
namespace Cosmos.Compiler.Tests.SimpleWriteLine.Kernel
|
|
{
|
|
public class Kernel : Sys.Kernel
|
|
{
|
|
protected override void BeforeRun()
|
|
{
|
|
Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back.");
|
|
}
|
|
|
|
protected override void Run()
|
|
{
|
|
Console.Write("Input: ");
|
|
var input = Console.ReadLine();
|
|
Console.Write("Text typed: ");
|
|
Console.WriteLine(input);
|
|
}
|
|
}
|
|
} |