<h1 dir="auto">Environment</h1>
<p dir="auto">Windows build number: 10.0.18362.0<br>
Windows Terminal version: 0.4.2382.0</p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Enter any command with more string then windows height.<br>
$a = @{<br>
1<br>
2<br>
... etc</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Terminal allow entering command with as many string as needed.</p>
<h1 dir="auto">Actual behavior</h1>
<h2 dir="auto">Oops, something went wrong.  Please report this bug with the details below.<br>
Report on GitHub: <a href="https://github.com/lzybkr/PSReadLine/issues/new">https://github.com/lzybkr/PSReadLine/issues/new</a></h2>
<p dir="auto">Last 43 Keys:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $ a Space = Space @ { Enter
 1 Enter
 2 Enter
 3 Enter
 4 Enter
 5 Enter
 6 Enter
 7 Enter
 8 Enter
 9 Enter
 0 Enter
 q Enter
 w Enter
 e Enter
 r Enter
 t Enter
 y Enter
 u Enter
 i"><pre class="notranslate"><code class="notranslate"> $ a Space = Space @ { Enter
 1 Enter
 2 Enter
 3 Enter
 4 Enter
 5 Enter
 6 Enter
 7 Enter
 8 Enter
 9 Enter
 0 Enter
 q Enter
 w Enter
 e Enter
 r Enter
 t Enter
 y Enter
 u Enter
 i
</code></pre></div>
<p dir="auto">Exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -1.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)"><pre class="notranslate"><code class="notranslate">System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -1.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)
</code></pre></div>
<h1 dir="auto">Other</h1>
<p dir="auto">This bug seems to be tied to yarn or react-scripts.  I ran a python interpreter in one tab, opened another tab and then closed my terminal. Everything worked as expected. It maybe a bug in yarn or react-scripts, but I am fairly confident that it is not due to step 4. in steps to reproduce. The fact that you have to be out of the tab running the long running process in order to trigger the bug implies to me that this is an issue with terminal.</p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382

Yarn: 1.17.3 
react-scripts: 3.0.1"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382

Yarn: 1.17.3 
react-scripts: 3.0.1
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open a terminal<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28187128/65383000-cd6be300-dd51-11e9-838f-1ed666d2f202.png"><img src="https://user-images.githubusercontent.com/28187128/65383000-cd6be300-dd51-11e9-838f-1ed666d2f202.png" alt="image" style="max-width: 100%;"></a></li>
<li>Run yarn start on a CRA Project.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28187128/65383016-fd1aeb00-dd51-11e9-822b-6ad9656a0273.png"><img src="https://user-images.githubusercontent.com/28187128/65383016-fd1aeb00-dd51-11e9-822b-6ad9656a0273.png" alt="image" style="max-width: 100%;"></a></li>
<li>Open a new tab<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28187128/65383019-073ce980-dd52-11e9-8c83-338425063184.png"><img src="https://user-images.githubusercontent.com/28187128/65383019-073ce980-dd52-11e9-8c83-338425063184.png" alt="image" style="max-width: 100%;"></a></li>
<li>Navigate to the new tab (this is a requirement)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28187128/65383020-0ad07080-dd52-11e9-8aa3-975b9e2bfb3c.png"><img src="https://user-images.githubusercontent.com/28187128/65383020-0ad07080-dd52-11e9-8aa3-975b9e2bfb3c.png" alt="image" style="max-width: 100%;"></a></li>
<li>Click the close button.</li>
<li>Wonder why the terminal is still running<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28187128/65383029-2b98c600-dd52-11e9-99c8-7731131c9846.png"><img src="https://user-images.githubusercontent.com/28187128/65383029-2b98c600-dd52-11e9-99c8-7731131c9846.png" alt="image" style="max-width: 100%;"></a></li>
</ol>

<h1 dir="auto">Expected behavior</h1>
<p dir="auto">No matter the amount of open tabs and long running processes, clicking close should kill all running processes in all tabs.</p>

<h1 dir="auto">Actual behavior</h1>
<p dir="auto">When a user opens a tab and runs a long running process in it, then opens another tab and then finally closes the terminal, the terminal should kill all running processes.<br>
In my instance I run <code class="notranslate">yarn start</code> with my CRA project in one tab and use the other tab for testing and running git commands. When I click the close button, the terminal does not kill all processes.</p>