aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Commands.cs')
-rw-r--r--ShiftOS.WinForms/Commands.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Commands.cs b/ShiftOS.WinForms/Commands.cs
index c7d8f5b..c9e9376 100644
--- a/ShiftOS.WinForms/Commands.cs
+++ b/ShiftOS.WinForms/Commands.cs
@@ -49,7 +49,10 @@ namespace ShiftOS.Engine
[Command("clear", description = "{DESC_CLEAR}")]
public static bool Clear()
{
- AppearanceManager.ConsoleOut.Clear();
+ Desktop.InvokeOnWorkerThread(() =>
+ {
+ AppearanceManager.ConsoleOut.Clear();
+ });
return true;
}
}