aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Terminal.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-17 21:03:27 -0400
committerMichael <[email protected]>2017-06-17 21:03:27 -0400
commita3cd6c0e6045d12f0cb8c9355bcd50f12e367f3b (patch)
tree9ffc62b370eaeb24255453c5bda0ace2558c1277 /ShiftOS.WinForms/Applications/Terminal.cs
parent81f10b0686fed7254af3f43d15ad39fe44a48de3 (diff)
downloadshiftos_thereturn-a3cd6c0e6045d12f0cb8c9355bcd50f12e367f3b.tar.gz
shiftos_thereturn-a3cd6c0e6045d12f0cb8c9355bcd50f12e367f3b.tar.bz2
shiftos_thereturn-a3cd6c0e6045d12f0cb8c9355bcd50f12e367f3b.zip
Commands are parsed with a bash-style syntax by default
Diffstat (limited to 'ShiftOS.WinForms/Applications/Terminal.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Terminal.cs18
1 files changed, 6 insertions, 12 deletions
diff --git a/ShiftOS.WinForms/Applications/Terminal.cs b/ShiftOS.WinForms/Applications/Terminal.cs
index 0470d68..54329df 100644
--- a/ShiftOS.WinForms/Applications/Terminal.cs
+++ b/ShiftOS.WinForms/Applications/Terminal.cs
@@ -260,23 +260,17 @@ namespace ShiftOS.WinForms.Applications
}
else
{
- if (CurrentCommandParser.parser == null)
+ var result = SkinEngine.LoadedSkin.CurrentParser.ParseCommand(text3);
+
+ if (result.Equals(default(KeyValuePair<string, Dictionary<string, string>>)))
{
- TerminalBackend.InvokeCommand(text3);
+ Console.WriteLine("{ERR_SYNTAXERROR}");
}
else
{
- var result = CurrentCommandParser.parser.ParseCommand(text3);
-
- if (result.Equals(default(KeyValuePair<KeyValuePair<string, string>, Dictionary<string, string>>)))
- {
- Console.WriteLine("Syntax Error: Syntax Error");
- }
- else
- {
- TerminalBackend.InvokeCommand(result.Key.Key, result.Key.Value, result.Value);
- }
+ TerminalBackend.InvokeCommand(result.Key, result.Value);
}
+
}
}
if (TerminalBackend.PrefixEnabled)