aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/Scripting.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-11 09:54:44 -0500
committerMichael <[email protected]>2017-03-11 09:54:44 -0500
commitdad61e325cfcd1ce12ae6f29d3778d1c919c6ab3 (patch)
tree64a75a52448e197c5bef4bdf0a0387be9be9a32d /ShiftOS_TheReturn/Scripting.cs
parent49812bf46cb153af6bab8e2a095024da84fcc149 (diff)
downloadshiftos_thereturn-dad61e325cfcd1ce12ae6f29d3778d1c919c6ab3.tar.gz
shiftos_thereturn-dad61e325cfcd1ce12ae6f29d3778d1c919c6ab3.tar.bz2
shiftos_thereturn-dad61e325cfcd1ce12ae6f29d3778d1c919c6ab3.zip
fix the hacker101 story some more
Diffstat (limited to 'ShiftOS_TheReturn/Scripting.cs')
-rw-r--r--ShiftOS_TheReturn/Scripting.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Scripting.cs b/ShiftOS_TheReturn/Scripting.cs
index 6768efb..d96bc98 100644
--- a/ShiftOS_TheReturn/Scripting.cs
+++ b/ShiftOS_TheReturn/Scripting.cs
@@ -69,12 +69,16 @@ namespace ShiftOS.Engine.Scripting
{
if (msg.Name == "run")
{
+ TerminalBackend.PrefixEnabled = false;
var cntnts = JsonConvert.DeserializeObject<dynamic>(msg.Contents);
var interp = new LuaInterpreter();
Desktop.InvokeOnWorkerThread(() =>
{
interp.Execute(cntnts.script.ToString());
+
});
+ TerminalBackend.PrefixEnabled = true;
+ TerminalBackend.PrintPrompt();
}
};
}