mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-01-23 10:12:16 +00:00
24 lines
777 B
C#
24 lines
777 B
C#
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ShiftOS.Main.Terminal.Commands
|
|
{
|
|
public class clear : TerminalCommand
|
|
{
|
|
public override string Name { get; } = "clear";
|
|
public override string Summary { get; } = "Clears all text from the terminal.";
|
|
public override string Usage { get; } = "clear";
|
|
public override bool Unlocked { get; set; } = false;
|
|
public static List<ShiftOS.Apps.Terminal> trm = TerminalBackend.trm;
|
|
public override void Run(params string[] parameters)
|
|
{
|
|
ShiftOS.Apps.Terminal trm = Array.Find(TerminalBackend.trm.ToArray(), w => w.TerminalID == TermID);
|
|
|
|
trm.Clear();
|
|
}
|
|
}
|
|
}
|