aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-23 12:47:42 -0500
committerMichael <[email protected]>2017-02-23 12:47:42 -0500
commit750b776349cb96f50c4f5b0eba3662bc7da27e69 (patch)
tree844907160e17d35f5aaf9a8fd7375ccae4e6ebe5 /ShiftOS.WinForms
parenta3fe772dbe714a0c2b0e23698e70c0436e08ba3b (diff)
downloadshiftos_thereturn-750b776349cb96f50c4f5b0eba3662bc7da27e69.tar.gz
shiftos_thereturn-750b776349cb96f50c4f5b0eba3662bc7da27e69.tar.bz2
shiftos_thereturn-750b776349cb96f50c4f5b0eba3662bc7da27e69.zip
Fix the terminal. #71
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/Commands.cs11
-rw-r--r--ShiftOS.WinForms/Controls/TerminalBox.cs6
2 files changed, 17 insertions, 0 deletions
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;
/// </summary>
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);