diff options
| author | FloppyDiskDrive <[email protected]> | 2017-11-23 11:20:53 -0600 |
|---|---|---|
| committer | FloppyDiskDrive <[email protected]> | 2017-11-23 11:20:53 -0600 |
| commit | 8fff93eb7da1b01d101e146ca7fe5d90ca01fcde (patch) | |
| tree | ebb8eafff81f5e54925ec27f1a19b5066f83a418 /ShiftOS.Main/Terminal/Commands/clear.cs | |
| parent | 1febbbd405e6f67401313defb76cc5a41b44c912 (diff) | |
| download | shiftos-rewind-8fff93eb7da1b01d101e146ca7fe5d90ca01fcde.tar.gz shiftos-rewind-8fff93eb7da1b01d101e146ca7fe5d90ca01fcde.tar.bz2 shiftos-rewind-8fff93eb7da1b01d101e146ca7fe5d90ca01fcde.zip | |
extremely rough savesystem
Diffstat (limited to 'ShiftOS.Main/Terminal/Commands/clear.cs')
| -rw-r--r-- | ShiftOS.Main/Terminal/Commands/clear.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ShiftOS.Main/Terminal/Commands/clear.cs b/ShiftOS.Main/Terminal/Commands/clear.cs new file mode 100644 index 0000000..cbabf88 --- /dev/null +++ b/ShiftOS.Main/Terminal/Commands/clear.cs @@ -0,0 +1,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(); + } + } +} |
