mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Fix the terminal. #71
This commit is contained in:
parent
a3fe772dbe
commit
750b776349
2 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue