yay changes v2

This commit is contained in:
FloppyDiskDrive 2017-11-22 11:46:09 -06:00
parent 8c95325ac4
commit 00446b7fe8
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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;