tomas/src/Tomas.Common/Programs/Clear.cs
Tony Bark c11f987521 Programs now built using IProgram interface
- The old App abstract class has been scrapped in favor of the IProgram interface in the Tomas.Interface library.
- A new terminal emulator was created when not on Windows.
- In both OS and terminal, a single dictionary has the commands and classes that implement IProgram.
- Start() now returns a boolean that behaves similar to C's main in returning an integer.
- A new while loop in both terminal and kernel handles the execution of programs.
2021-03-30 08:26:18 -04:00

14 lines
No EOL
227 B
C#

using System;
using Tomas.Interface.Shell;
namespace Tomas.Kernel.Programs
{
public class Clear : IProgram
{
public bool Start()
{
Console.Clear();
return true;
}
}
}