diff options
| author | Michael <[email protected]> | 2017-05-28 07:21:16 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-28 07:21:16 -0400 |
| commit | 8e3bdf71e71096711f11a0d51b2b384e117391ee (patch) | |
| tree | 4df860d8c7f48837a101491ce0d756a66720ff2a /ShiftOS_TheReturn/TerminalBackend.cs | |
| parent | dc0b8c66885593f7412e24bf7132bc08f6c40a9c (diff) | |
| download | shiftos_thereturn-8e3bdf71e71096711f11a0d51b2b384e117391ee.tar.gz shiftos_thereturn-8e3bdf71e71096711f11a0d51b2b384e117391ee.tar.bz2 shiftos_thereturn-8e3bdf71e71096711f11a0d51b2b384e117391ee.zip | |
strip things down but make things better
Diffstat (limited to 'ShiftOS_TheReturn/TerminalBackend.cs')
| -rw-r--r-- | ShiftOS_TheReturn/TerminalBackend.cs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ShiftOS_TheReturn/TerminalBackend.cs b/ShiftOS_TheReturn/TerminalBackend.cs index b18e27c..1c024eb 100644 --- a/ShiftOS_TheReturn/TerminalBackend.cs +++ b/ShiftOS_TheReturn/TerminalBackend.cs @@ -361,14 +361,12 @@ namespace ShiftOS.Engine /// <param name="isRemote">Whether the command should be sent through Remote Terminal Session (RTS).</param> public static void InvokeCommand(string text, bool isRemote = false) { + if (string.IsNullOrWhiteSpace(text)) + return; var tw = new MemoryTextWriter(); Console.SetOut(tw); try { - - if (string.IsNullOrWhiteSpace(text)) - return; - var args = GetArgs(ref text); Stopwatch debugger = new Stopwatch(); @@ -533,10 +531,9 @@ namespace ShiftOS.Engine /// </summary> public static void PrintPrompt() { + Console.WriteLine(); if (SaveSystem.CurrentSave != null && CurrentUser != null) { - Desktop.InvokeOnWorkerThread(() => - { ConsoleEx.BackgroundColor = SkinEngine.LoadedSkin.TerminalBackColorCC; ConsoleEx.Italic = false; ConsoleEx.Underline = false; @@ -566,7 +563,7 @@ namespace ShiftOS.Engine ConsoleEx.Bold = false; ConsoleEx.ForegroundColor = SkinEngine.LoadedSkin.TerminalForeColorCC; Console.Write(" "); - }); + ConsoleEx.Flush(); } } |
