From b737aa8ded0793855fe5e5f49c8967051bd11907 Mon Sep 17 00:00:00 2001 From: FloppyDiskDrive Date: Sat, 18 Nov 2017 12:29:15 -0600 Subject: [PATCH] new cmd and stuff --- ShiftOS.Main/ShiftOS.Main.csproj | 1 + .../ShiftOS/Apps/Terminal.Designer.cs | 1 + ShiftOS.Main/Terminal/Commands/TestStory.cs | 26 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 ShiftOS.Main/Terminal/Commands/TestStory.cs diff --git a/ShiftOS.Main/ShiftOS.Main.csproj b/ShiftOS.Main/ShiftOS.Main.csproj index 35d7761..e70869b 100644 --- a/ShiftOS.Main/ShiftOS.Main.csproj +++ b/ShiftOS.Main/ShiftOS.Main.csproj @@ -100,6 +100,7 @@ Desktop.cs + diff --git a/ShiftOS.Main/ShiftOS/Apps/Terminal.Designer.cs b/ShiftOS.Main/ShiftOS/Apps/Terminal.Designer.cs index b514bbf..a746456 100644 --- a/ShiftOS.Main/ShiftOS/Apps/Terminal.Designer.cs +++ b/ShiftOS.Main/ShiftOS/Apps/Terminal.Designer.cs @@ -36,6 +36,7 @@ this.termmain.BackColor = System.Drawing.Color.Black; this.termmain.BorderStyle = System.Windows.Forms.BorderStyle.None; this.termmain.Dock = System.Windows.Forms.DockStyle.Fill; + this.termmain.Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.termmain.ForeColor = System.Drawing.Color.White; this.termmain.Location = new System.Drawing.Point(0, 0); this.termmain.Name = "termmain"; diff --git a/ShiftOS.Main/Terminal/Commands/TestStory.cs b/ShiftOS.Main/Terminal/Commands/TestStory.cs new file mode 100644 index 0000000..379c7ca --- /dev/null +++ b/ShiftOS.Main/Terminal/Commands/TestStory.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; + +namespace ShiftOS.Main.Terminal.Commands +{ + public class TestStory : TerminalCommand + { + public override string Name { get; } = "teststory"; + public override string Summary { get; } = "Debug Command - Test the intro"; + public override string Usage { get; } = "n/a"; + public override bool Unlocked { get; set; } = false; + + public override void Run(params string[] parameters) + { + WriteLine("Incoming connection..."); + Thread.Sleep(2000); + WriteLine("User set alias as \"DevX\"."); + Thread.Sleep(2000); + WriteLine("User has connected successfully!"); + } + } +}