mirror of
https://github.com/tonytins/tomas.git
synced 2025-04-30 03:31:39 -04:00
- 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.
14 lines
No EOL
227 B
C#
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;
|
|
}
|
|
}
|
|
} |