aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/WindowsFormsApplication1/Apps/Terminal.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/source/WindowsFormsApplication1/Apps/Terminal.cs b/source/WindowsFormsApplication1/Apps/Terminal.cs
index 5681487..4fb6899 100644
--- a/source/WindowsFormsApplication1/Apps/Terminal.cs
+++ b/source/WindowsFormsApplication1/Apps/Terminal.cs
@@ -1686,15 +1686,9 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o
p.StartInfo.ErrorDialog = false;
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.WorkingDirectory = current_dir;
- this.Invoke(new Action(() =>
- {
- p.Start();
- StreamWriter sw = p.StandardInput;
- while (!p.HasExited)
- {
- txtterm.Text += p.StandardOutput.Read();
- }
- }));
+ p.Start();
+ WriteLine(p.StandardOutput.ReadToEnd());
+ p.WaitForExit();
}
#endregion