<p dir="auto">Step 0:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14037032/63910158-2b115600-ca58-11e9-9259-984636ce5c0c.png"><img src="https://user-images.githubusercontent.com/14037032/63910158-2b115600-ca58-11e9-9259-984636ce5c0c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Step 1:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14037032/63910181-3d8b8f80-ca58-11e9-9105-3bfc046a776d.png"><img src="https://user-images.githubusercontent.com/14037032/63910181-3d8b8f80-ca58-11e9-9105-3bfc046a776d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Step 2 (after Invalid keyboard event):<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14037032/63910234-70ce1e80-ca58-11e9-83b6-65c91ad2a3db.png"><img src="https://user-images.githubusercontent.com/14037032/63910234-70ce1e80-ca58-11e9-83b6-65c91ad2a3db.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Step 3 （click new window, Previous accidental closure）:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14037032/63910283-9ce99f80-ca58-11e9-86e9-fd7876d7e127.png"><img src="https://user-images.githubusercontent.com/14037032/63910283-9ce99f80-ca58-11e9-86e9-fd7876d7e127.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I didn't find the same issues.<br>
I know it's not a friendly operation, but I think it's an unexpected problem.</p>
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">As a user I want to be able to paste long commands that are spread over multiple lines where the linebreaks are escaped with <code class="notranslate">\</code>. Example below</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common"><pre class="notranslate">sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common</pre></div>

<h2 dir="auto">ACTUAL</h2>
<p dir="auto">The actual behavior is that terminal tries to execute each line immediately . See example below</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="learn@DESKTOP-4FCRN5Q:~/projects$ sudo apt-get install \
&gt;
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
learn@DESKTOP-4FCRN5Q:~/projects$     apt-transport-https \
&gt;
apt-transport-https: command not found
learn@DESKTOP-4FCRN5Q:~/projects$     ca-certificates \
&gt;
ca-certificates: command not found
learn@DESKTOP-4FCRN5Q:~/projects$     curl \
&gt;
curl: try 'curl --help' or 'curl --manual' for more information
learn@DESKTOP-4FCRN5Q:~/projects$     gnupg-agent \
&gt;
gnupg-agent: command not found"><pre class="notranslate"><code class="notranslate">learn@DESKTOP-4FCRN5Q:~/projects$ sudo apt-get install \
&gt;
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
learn@DESKTOP-4FCRN5Q:~/projects$     apt-transport-https \
&gt;
apt-transport-https: command not found
learn@DESKTOP-4FCRN5Q:~/projects$     ca-certificates \
&gt;
ca-certificates: command not found
learn@DESKTOP-4FCRN5Q:~/projects$     curl \
&gt;
curl: try 'curl --help' or 'curl --manual' for more information
learn@DESKTOP-4FCRN5Q:~/projects$     gnupg-agent \
&gt;
gnupg-agent: command not found
</code></pre></div>
<h2 dir="auto">EXPECTED</h2>

<p dir="auto">The multiline command from above example is treated as on command and after being paste waits for the user to press ENTER before it is executed.</p>
<blockquote>
<p dir="auto">NOTE: The Ubuntu WSL is a good example of how it should behave correctly<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38438046/68070038-c11f7080-fd68-11e9-8966-0b0623ecc226.png"><img src="https://user-images.githubusercontent.com/38438046/68070038-c11f7080-fd68-11e9-8966-0b0623ecc226.png" alt="image" style="max-width: 100%;"></a></p>
</blockquote>