diff options
| author | Michael <[email protected]> | 2017-07-04 10:07:20 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-07-04 10:07:20 -0400 |
| commit | 5515881e922de087f4e0f5db51ae681bcd7f70d6 (patch) | |
| tree | f13826872c1fad3fb204fddcbe63fba996664e54 /ShiftOS.Frontend/Apps/Terminal.cs | |
| parent | 3e65bf26fd69ed5cd9ed9c49b20ab5182c098430 (diff) | |
| download | shiftos_thereturn-5515881e922de087f4e0f5db51ae681bcd7f70d6.tar.gz shiftos_thereturn-5515881e922de087f4e0f5db51ae681bcd7f70d6.tar.bz2 shiftos_thereturn-5515881e922de087f4e0f5db51ae681bcd7f70d6.zip | |
import terminal commands from shiftos.winforms
Diffstat (limited to 'ShiftOS.Frontend/Apps/Terminal.cs')
| -rw-r--r-- | ShiftOS.Frontend/Apps/Terminal.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ShiftOS.Frontend/Apps/Terminal.cs b/ShiftOS.Frontend/Apps/Terminal.cs index f3aeaf1..c554957 100644 --- a/ShiftOS.Frontend/Apps/Terminal.cs +++ b/ShiftOS.Frontend/Apps/Terminal.cs @@ -36,6 +36,16 @@ namespace ShiftOS.Frontend.Apps _terminal.Layout(); AppearanceManager.ConsoleOut = _terminal; AppearanceManager.StartConsoleOut(); + TerminalBackend.PrintPrompt(); + SaveSystem.GameReady += () => + { + if (Shiftorium.UpgradeInstalled("desktop")) + { + AppearanceManager.Close(this); + } + else + TerminalBackend.PrintPrompt(); + }; } protected override void OnLayout() @@ -287,7 +297,8 @@ namespace ShiftOS.Frontend.Apps } if (a.KeyChar != '\0') { - base.OnKeyEvent(a); + Text = Text.Insert(Index, a.KeyChar.ToString()); + Index++; AppearanceManager.CurrentPosition++; RecalculateLayout(); InvalidateTopLevel(); |
