Fix the terminal. #71

This commit is contained in:
Michael 2017-02-23 12:47:42 -05:00
parent a3fe772dbe
commit 750b776349
2 changed files with 17 additions and 0 deletions

View file

@ -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
{

View file

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