diff options
| author | Michael <[email protected]> | 2017-06-17 21:03:27 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-17 21:03:27 -0400 |
| commit | a3cd6c0e6045d12f0cb8c9355bcd50f12e367f3b (patch) | |
| tree | 9ffc62b370eaeb24255453c5bda0ace2558c1277 /ShiftOS.WinForms | |
| parent | 81f10b0686fed7254af3f43d15ad39fe44a48de3 (diff) | |
| download | shiftos_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')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Terminal.cs | 18 |
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) |
