<p dir="auto">In a stand-alone CMD window, the <strong>CLS</strong> command clears not only the text currently visible in the window, but all of the history in the scrollback buffer.  In a Windows Terminal CMD tab, clear is clearing only the currently visible text, leaving the scrollback content untouched.</p>
<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.18362.239]
Windows Terminal version (if applicable): 0.3.2171.0

Any other software? no"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.3.2171.0

Any other software? no
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open a command (CMD) tab.</li>
<li>Execute enough commands to put data in the scrollback buffer.</li>
<li>Execute <strong>cls</strong></li>
<li>Observe results</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I expect the screen and scrollback buffer to be completely cleared.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Only the screen is cleared.</p>
<p dir="auto">I feel like this problem should have been reported already, but I couldn't find it in GitHub issue search.</p>
<h3 dir="auto">Environment</h3>
<p dir="auto">Windows build number: <code class="notranslate">Microsoft Windows [Version 10.0.18362.205]</code> - Win10 ver. 1903 with Microsoft-internal test build for monthly quality update<br>
Windows Terminal version: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/terminal/commit/8dd2e795abb5ef7288ad8f08aece6ff581ec1609/hovercard" href="https://github.com/microsoft/terminal/commit/8dd2e795abb5ef7288ad8f08aece6ff581ec1609"><tt>8dd2e79</tt></a> - <a href="https://dev.azure.com/ms/Terminal/_build/results?buildId=20764" rel="nofollow">Azure DevOps CI build for AMD64</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Start Terminal, with either a Command Prompt (cmd.exe) tab or a PowerShell tab.</li>
<li>Run this command: <code class="notranslate">type C:\Windows\System32\OEMDefaultAssociations.xml</code></li>
<li>Observe a long XML file appear on screen.</li>
<li>Run this command: <code class="notranslate">cls</code></li>
</ol>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">The visible area of the window is cleared of everything except the cmd/PS prompt, and you can no longer scroll the window view to see any part of the file you displayed. This is what happens in the old console window (conhost.exe).</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The visible area is cleared, but the window scrollbar remains active. When you scroll up, you see that most of the file you displayed remains; only the end of the file is erased up to a length determined by your visible window height.</p>