mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 09:06:23 +02:00
Add process exception handling and clean window closing logic
This commit is contained in:
@@ -69,7 +69,7 @@ public class DesktopProcess : Process
|
||||
WindowManager.Update();
|
||||
|
||||
// Sleep slightly to yield CPU to the main CLI thread (approx 60 FPS)
|
||||
//Thread.Sleep(16);
|
||||
Thread.Sleep(16);
|
||||
}
|
||||
|
||||
IsRunning = false;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user