diff options
| author | Michael <[email protected]> | 2017-01-18 10:01:37 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-01-18 10:01:37 -0500 |
| commit | 33edc6a21175f16aae06fc4d3d327266a456eeee (patch) | |
| tree | 2fdd8ef3edc135a38088a2409032982538f22664 /ShiftOS_TheReturn/TerminalBackend.cs | |
| parent | 18f93056b7d882b4dcce4d3afacd1ba6d37d94ac (diff) | |
| download | shiftos_thereturn-33edc6a21175f16aae06fc4d3d327266a456eeee.tar.gz shiftos_thereturn-33edc6a21175f16aae06fc4d3d327266a456eeee.tar.bz2 shiftos_thereturn-33edc6a21175f16aae06fc4d3d327266a456eeee.zip | |
Improved tutorial, win.open edit
Tutorial now goes over how to do basic things like check codepoints, buy
upgrades, open windows etc.
win.open now shows a list of available windows when ran with no
arguments.
Diffstat (limited to 'ShiftOS_TheReturn/TerminalBackend.cs')
| -rw-r--r-- | ShiftOS_TheReturn/TerminalBackend.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/TerminalBackend.cs b/ShiftOS_TheReturn/TerminalBackend.cs index bba5510..156a916 100644 --- a/ShiftOS_TheReturn/TerminalBackend.cs +++ b/ShiftOS_TheReturn/TerminalBackend.cs @@ -36,6 +36,8 @@ namespace ShiftOS.Engine { public static class TerminalBackend { + public static event Action<string, string> CommandProcessed; + public static bool Elevated { get; set; } public static Dictionary<string, object> GetArgs(ref string text) @@ -84,6 +86,7 @@ namespace ShiftOS.Engine args: ""{JsonConvert.SerializeObject(args)}"" }}"); } + CommandProcessed?.Invoke(text, JsonConvert.SerializeObject(args)); } catch (Exception ex) { |
