aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShiftOS.Main/ShiftOS/Apps/Terminal.cs2
-rw-r--r--ShiftOS.Main/Terminal/TerminalBackend.cs3
2 files changed, 3 insertions, 2 deletions
diff --git a/ShiftOS.Main/ShiftOS/Apps/Terminal.cs b/ShiftOS.Main/ShiftOS/Apps/Terminal.cs
index cf20bd9..44452ab 100644
--- a/ShiftOS.Main/ShiftOS/Apps/Terminal.cs
+++ b/ShiftOS.Main/ShiftOS/Apps/Terminal.cs
@@ -11,7 +11,7 @@ namespace ShiftOS.Main.ShiftOS.Apps
{
public int TerminalID = TerminalBackend.trmTopID++; // Used so that we can have multiple instances of the terminal whilst the command begin run knowing what terminal to send the text to - very complicated ;)
public string defaulttextBefore = "user> ";
- public string defaulttextResult = "[user@shiftos ~]$ "; // NOT YET IMPLEMENTED!!!
+ public string defaulttextResult = "[user@shiftos~]$> "; // NOT YET IMPLEMENTED!!!
public bool DoClear = false;
public bool RunningCommand = false;
public bool WaitingResponse = false;
diff --git a/ShiftOS.Main/Terminal/TerminalBackend.cs b/ShiftOS.Main/Terminal/TerminalBackend.cs
index 52fd9b0..d275244 100644
--- a/ShiftOS.Main/Terminal/TerminalBackend.cs
+++ b/ShiftOS.Main/Terminal/TerminalBackend.cs
@@ -45,7 +45,8 @@ namespace ShiftOS.Main.Terminal
return;
}
}
- if(!complete)
+ if (command.Length == 0) return;
+ if (!complete)
{
Array.Find(trm.ToArray(), w => w.TerminalID == TermID).termmain.AppendText($"\n sbash: invalid command: {command.Split(' ').First()}");
return;