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 @@ public void runExe(string[] args) 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