aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarver Harrison <[email protected]>2016-07-22 20:44:20 -0700
committerCarver Harrison <[email protected]>2016-07-22 20:44:20 -0700
commita948ceb36cdf3600d810b0c03253d69f448f51eb (patch)
treef3a89061b9ff86d9c779cc9152714c4481b13f2c
parent0a87d135d62576f1575a66f5f5707e2bbf8e2906 (diff)
downloadshiftos-c-_theultimatehacker-master.tar.gz
shiftos-c-_theultimatehacker-master.tar.bz2
shiftos-c-_theultimatehacker-master.zip
Fixed GNU/ShiftTermHEADmaster
Liek da naem
-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