<p dir="auto">If I open a tmux session and then use the shortcut "Ctrl+b + %" to add a new vertical window it displays properly. However if I maximize the terminal and then minimize it again to its original size the terminal will freeze for a second and then close without appearing any error message.</p>
<p dir="auto">This behaviour only happens with vertical windows, and not with horizontal ones.</p>
<p dir="auto">I don't know if it's a problem of the WSL terminal or tmux itself. I'm new to developping in Windows, so where can I find the log or any information to let you know what is happening with the terminal?</p>
<p dir="auto">EDIT: I just find out that it happens with tmux and only when you minimize back to its size a terminal which contains many lines or rows. For example if I go to /usr/bin/ and type "ls -l" all the content will show in screen; if I maximize the window then minimize it back to its default size it will crash and close without showing any error. If I do the same operation out of tmux, it displays without any error.</p>
<h1 dir="auto">Environment</h1>
<p dir="auto">Windows 10 Pro 18956 Insider Preview</p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">The option <strong>"closeOnExit"</strong> will be invalid with only a tab running, and it could be reproduce with multi-tabs running occationally.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Fix it</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">There is an option named "closeOnExit", but it seems to be invalid after inputting <code class="notranslate">exit</code> command, and the windows would not be closed.</p>
<p dir="auto">Following content is a part of my configuration file about powershell, it might help you to resolve it.</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
            &quot;startingDirectory&quot;: &quot;%USERPROFILE%&quot;,
            &quot;guid&quot;: &quot;{95e05ea2-6bad-4896-bcdf-a4f96c885cc8}&quot;,
            &quot;name&quot;: &quot;PowerShell&quot;,
            &quot;background&quot;: &quot;#002731&quot;,
            &quot;colorscheme&quot;: &quot;Campbell&quot;,
            &quot;historySize&quot;: 9001,
            &quot;snapOnInput&quot;: true,
            &quot;cursorColor&quot;: &quot;#FFFFFF&quot;,
            &quot;cursorShape&quot;: &quot;bar&quot;,
            &quot;commandline&quot;: &quot;powershell.exe&quot;,
            &quot;fontFace&quot;: &quot;Consolas&quot;,
            &quot;fontSize&quot;: 12,
            &quot;acrylicOpacity&quot;: 0.5,
            &quot;useAcrylic&quot;: true,
            &quot;closeOnExit&quot;: true,
            &quot;padding&quot;: &quot;0, 0, 0, 0&quot;,
            &quot;icon&quot;: &quot;ms-appdata:///roaming/icons/powershell_32px.png&quot;
        }"><pre class="notranslate">{
            <span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>%USERPROFILE%<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{95e05ea2-6bad-4896-bcdf-a4f96c885cc8}<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>PowerShell<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"background"</span>: <span class="pl-s"><span class="pl-pds">"</span>#002731<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>Campbell<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"historySize"</span>: <span class="pl-c1">9001</span>,
            <span class="pl-ent">"snapOnInput"</span>: <span class="pl-c1">true</span>,
            <span class="pl-ent">"cursorColor"</span>: <span class="pl-s"><span class="pl-pds">"</span>#FFFFFF<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>bar<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span>powershell.exe<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Consolas<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">12</span>,
            <span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">0.5</span>,
            <span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>,
            <span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">true</span>,
            <span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>0, 0, 0, 0<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appdata:///roaming/icons/powershell_32px.png<span class="pl-pds">"</span></span>
        }</pre></div>