diff --git a/ShiftOS.WinForms/Commands.cs b/ShiftOS.WinForms/Commands.cs index 2d297f5..91caff4 100644 --- a/ShiftOS.WinForms/Commands.cs +++ b/ShiftOS.WinForms/Commands.cs @@ -39,6 +39,17 @@ using Newtonsoft.Json; /// namespace ShiftOS.WinForms { + [Namespace("sos")] + public static class MichaelDrunkStuff + { + [Command("drunkmichael")] + public static bool Drunky() + { + + return true; + } + } + [Namespace("trm")] public static class TerminalExtensions { diff --git a/ShiftOS.WinForms/Controls/TerminalBox.cs b/ShiftOS.WinForms/Controls/TerminalBox.cs index 6c05027..ffc3f86 100644 --- a/ShiftOS.WinForms/Controls/TerminalBox.cs +++ b/ShiftOS.WinForms/Controls/TerminalBox.cs @@ -44,6 +44,12 @@ namespace ShiftOS.WinForms.Controls catch { } } + protected override void OnClick(EventArgs e) + { + base.OnClick(e); + this.Select(this.TextLength, 0); + } + public void Write(string text) { this.Text += Localization.Parse(text);