blob: cbabf88b0ea0c36b63ce92402ecd7435df71fa05 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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();
}
}
}
|