new cmd and stuff

This commit is contained in:
FloppyDiskDrive 2017-11-18 12:29:15 -06:00
parent cc734557de
commit b737aa8ded
3 changed files with 28 additions and 0 deletions

View file

@ -100,6 +100,7 @@
<DependentUpon>Desktop.cs</DependentUpon>
</Compile>
<Compile Include="Terminal\Commands\Hello.cs" />
<Compile Include="Terminal\Commands\TestStory.cs" />
<Compile Include="Terminal\TerminalBackend.cs" />
<Compile Include="Terminal\TerminalCommand.cs" />
<EmbeddedResource Include="Properties\Resources.resx">

View file

@ -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";

View file

@ -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 <DevX> has connected successfully!");
}
}
}