Add process exception handling and clean window closing logic

This commit is contained in:
Stone_Red
2026-06-08 20:34:25 +02:00
parent 82efb8d967
commit 169c604c7a
4 changed files with 32 additions and 10 deletions
+3 -4
View File
@@ -140,14 +140,13 @@ public class TerminalProcess : Process
// The last line is the input line
textLines[maxLines].Content = "> " + currentInput + "_";
textLines[maxLines].Position = new Point(5, startY + (maxLines * LineHeight));
// Hide any extra text lines we don't need
// Hide any extra text lines we don't need
for (int i = maxLines + 1; i < textLines.Count; i++)
{
textLines[i].Content = "";
}
window.Flush();
}
window.Flush();
}
}