<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
Windows Terminal version (if applicable): 0.4.2382.0


Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362
Windows Terminal version (if applicable): 0.4.2382.0


Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>

<ul dir="auto">
<li>
<p dir="auto">Open Terminal.</p>
</li>
<li>
<p dir="auto">Open new tab of powershell.</p>
</li>
<li>
<p dir="auto">Run VS Code as a child process of the tab (just <code class="notranslate">code .</code> as long as no other VS Code windows are open).</p>
</li>
<li>
<p dir="auto">Close tab with GUI child process.</p>
</li>
</ul>
<h1 dir="auto">Expected behavior</h1>

<p dir="auto">Tab is closed, child process is killed.</p>
<h1 dir="auto">Actual behavior</h1>

<p dir="auto"><code class="notranslate">WindowsTerminal.exe is not responding</code>.</p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal: 0.2.1831.0
Remote OS:  Raspbian GNU/Linux 9.8 (stretch) armv7l   
Emacs 25.1.1 with rust-mode
Vim 8.0.707 "><pre class="notranslate"><code class="notranslate">Windows: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal: 0.2.1831.0
Remote OS:  Raspbian GNU/Linux 9.8 (stretch) armv7l   
Emacs 25.1.1 with rust-mode
Vim 8.0.707 
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open Windows Terminal</li>
<li>Run ssh to remote GNU/Linux</li>
<li>Download <a href="https://file.veer66.rocks/windows/re.rs" rel="nofollow">https://file.veer66.rocks/windows/re.rs</a></li>
<li>Run emacs</li>
<li>Install rust-mode to Emacs</li>
<li>In Emacs, open file re.rs</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Windows Terminal should display this code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="lazy_static! {
    static ref DATE_RE: Regex = Regex::new(r&quot;(\d{4})(\d{2})(\d{2})&quot;).unwrap();
    static ref CHUNK_RE: Regex = Regex::new(r&quot;[ก-์]+|\([^\)]+\)&quot;).unwrap();
    static ref THAI_RE: Regex = Regex::new(r&quot;[ก-์]+&quot;).unwrap();
}"><pre class="notranslate"><span class="pl-en">lazy_static</span><span class="pl-en">!</span> <span class="pl-kos">{</span>
    <span class="pl-k">static</span> ref <span class="pl-v">DATE_RE</span>: <span class="pl-v">Regex</span> = <span class="pl-v">Regex</span>::new<span class="pl-kos">(</span><span class="pl-s">r"(\d{4})(\d{2})(\d{2})"</span><span class="pl-kos">)</span>.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span>;
    <span class="pl-k">static</span> ref <span class="pl-v">CHUNK_RE</span>: <span class="pl-v">Regex</span> = <span class="pl-v">Regex</span>::new<span class="pl-kos">(</span><span class="pl-s">r"[ก-์]+|\([^\)]+\)"</span><span class="pl-kos">)</span>.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span>;
    <span class="pl-k">static</span> ref <span class="pl-v">THAI_RE</span>: <span class="pl-v">Regex</span> = <span class="pl-v">Regex</span>::new<span class="pl-kos">(</span><span class="pl-s">r"[ก-์]+"</span><span class="pl-kos">)</span>.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span>;
<span class="pl-kos">}</span></pre></div>
<p dir="auto">like below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/370688/61382821-a8816c80-a8d7-11e9-9555-0a2b122bcddd.png"><img src="https://user-images.githubusercontent.com/370688/61382821-a8816c80-a8d7-11e9-9555-0a2b122bcddd.png" alt="xfce_term_emacs" style="max-width: 100%;"></a></p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Line 3 was broken.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/370688/61382857-bd5e0000-a8d7-11e9-8240-cf6a62abe92c.png"><img src="https://user-images.githubusercontent.com/370688/61382857-bd5e0000-a8d7-11e9-8240-cf6a62abe92c.png" alt="win-term-emacs" style="max-width: 100%;"></a></p>