aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/TerminalBackend.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-26 17:06:38 -0400
committerMichael <[email protected]>2017-05-26 17:06:38 -0400
commit97e22b35ada5898fdcb2556628f764d927cff913 (patch)
tree88f40abbed43100bb393083ccecc81893a2447f7 /ShiftOS_TheReturn/TerminalBackend.cs
parent798f0e5920fb5dc564cf6adab60e3c909197e736 (diff)
downloadshiftos_thereturn-97e22b35ada5898fdcb2556628f764d927cff913.tar.gz
shiftos_thereturn-97e22b35ada5898fdcb2556628f764d927cff913.tar.bz2
shiftos_thereturn-97e22b35ada5898fdcb2556628f764d927cff913.zip
SLIGHT optimizations?
Diffstat (limited to 'ShiftOS_TheReturn/TerminalBackend.cs')
-rw-r--r--ShiftOS_TheReturn/TerminalBackend.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/ShiftOS_TheReturn/TerminalBackend.cs b/ShiftOS_TheReturn/TerminalBackend.cs
index c8619b5..b18e27c 100644
--- a/ShiftOS_TheReturn/TerminalBackend.cs
+++ b/ShiftOS_TheReturn/TerminalBackend.cs
@@ -85,6 +85,11 @@ namespace ShiftOS.Engine
public static string LastCommand = "";
/// <summary>
+ /// Gets the output of the last command.
+ /// </summary>
+ public static string LastCommandBuffer { get; private set; }
+
+ /// <summary>
/// Invokes a ShiftOS terminal command.
/// </summary>
/// <param name="ns">The command's namespace.</param>
@@ -395,8 +400,10 @@ namespace ShiftOS.Engine
}
string buffer = tw.ToString();
+ LastCommandBuffer = buffer;
Console.SetOut(new TerminalTextWriter());
- Console.Write(buffer);
+ if(!isRemote)
+ Console.Write(buffer);
}