<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18990.1]
Windows Terminal version (if applicable): Version: 0.5.2681.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18990.1]
Windows Terminal version (if applicable): Version: 0.5.2681.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Copy text with <code class="notranslate">\</code> line break. Example:</p>
<div class="highlight highlight-source-makefile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="libreadline-gplv2-dev libncursesw5-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libffi-dev \
wget curl libldap2-dev zlib1g-dev lib32z1-dev uuid-dev"><pre class="notranslate">libreadline-gplv2-dev libncursesw5-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libffi-dev \
wget curl libldap2-dev zlib1g-dev lib32z1-dev uuid-dev</pre></div>
<p dir="auto">Paste it on powershell or wsl console.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Terminal should recognize <code class="notranslate">\</code> as a line break and should execute the whole code as it does on powershell or wsl console directly.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28060986/65827125-037efa80-e25d-11e9-9848-48ae9278e5a0.png"><img src="https://user-images.githubusercontent.com/28060986/65827125-037efa80-e25d-11e9-9848-48ae9278e5a0.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28060986/65827130-0d086280-e25d-11e9-9ba7-ab47b79c36c7.png"><img src="https://user-images.githubusercontent.com/28060986/65827130-0d086280-e25d-11e9-9ba7-ab47b79c36c7.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Terminal will not recognize <code class="notranslate">\</code> as a line break and will execute each line individually immediately causing a unexpected results.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28060986/65827086-9cf9dc80-e25c-11e9-9b1c-fe77e99265a5.png"><img src="https://user-images.githubusercontent.com/28060986/65827086-9cf9dc80-e25c-11e9-9b1c-fe77e99265a5.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28060986/65827097-bac74180-e25c-11e9-9340-bc858a4a2445.png"><img src="https://user-images.githubusercontent.com/28060986/65827097-bac74180-e25c-11e9-9340-bc858a4a2445.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">We need a way to detect within a running terminal what profile instantiated it, so that we can make on-the-fly changes to the config (like change the background or font). The MSTerminalSetting is an example of that method.</p>

<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Provide the steps/api to PInvoke to get the profile guid based on the session guid. OR expose the session's profile guid to an environment variable like WT_PROFILE</p>