mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-01-22 11:21:45 -05:00
new cmd and stuff
This commit is contained in:
parent
cc734557de
commit
b737aa8ded
3 changed files with 28 additions and 0 deletions
|
@ -100,6 +100,7 @@
|
||||||
<DependentUpon>Desktop.cs</DependentUpon>
|
<DependentUpon>Desktop.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Terminal\Commands\Hello.cs" />
|
<Compile Include="Terminal\Commands\Hello.cs" />
|
||||||
|
<Compile Include="Terminal\Commands\TestStory.cs" />
|
||||||
<Compile Include="Terminal\TerminalBackend.cs" />
|
<Compile Include="Terminal\TerminalBackend.cs" />
|
||||||
<Compile Include="Terminal\TerminalCommand.cs" />
|
<Compile Include="Terminal\TerminalCommand.cs" />
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
|
|
1
ShiftOS.Main/ShiftOS/Apps/Terminal.Designer.cs
generated
1
ShiftOS.Main/ShiftOS/Apps/Terminal.Designer.cs
generated
|
@ -36,6 +36,7 @@
|
||||||
this.termmain.BackColor = System.Drawing.Color.Black;
|
this.termmain.BackColor = System.Drawing.Color.Black;
|
||||||
this.termmain.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
this.termmain.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
this.termmain.Dock = System.Windows.Forms.DockStyle.Fill;
|
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.ForeColor = System.Drawing.Color.White;
|
||||||
this.termmain.Location = new System.Drawing.Point(0, 0);
|
this.termmain.Location = new System.Drawing.Point(0, 0);
|
||||||
this.termmain.Name = "termmain";
|
this.termmain.Name = "termmain";
|
||||||
|
|
26
ShiftOS.Main/Terminal/Commands/TestStory.cs
Normal file
26
ShiftOS.Main/Terminal/Commands/TestStory.cs
Normal 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!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue