<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.0
Windows Terminal version: 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2762.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Just keep typing.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Keep the history.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Lost the history. See the GIF file:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1520283/66694992-812b1780-eced-11e9-891b-da2042021203.gif"><img src="https://user-images.githubusercontent.com/1520283/66694992-812b1780-eced-11e9-891b-da2042021203.gif" alt="terminal" data-animated-image="" style="max-width: 100%;"></a></p>
<h2 dir="auto">Environment data</h2>
<div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="PS version: 5.1.17712.1000
PSReadline version: 2.0.0-beta2
os: 10.0.17712.1000 (WinBuild.160101.0800)
PS file version: 10.0.17712.1000 (WinBuild.160101.0800)"><pre class="notranslate">PS version: <span class="pl-c1">5.1</span>.<span class="pl-c1">17712.1000</span>
PSReadline version: <span class="pl-c1">2.0</span>.<span class="pl-c1">0</span><span class="pl-k">-</span>beta2
os: <span class="pl-c1">10.0</span>.<span class="pl-c1">17712.1000</span> (WinBuild.<span class="pl-c1">160101.0800</span>)
PS file version: <span class="pl-c1">10.0</span>.<span class="pl-c1">17712.1000</span> (WinBuild.<span class="pl-c1">160101.0800</span>)</pre></div>
<h2 dir="auto">Steps to reproduce or exception report</h2>
<p dir="auto">Make sure that the prompt is at the bottom of the screen, then press enter any number of times. One should do.<br>
PSReadline will emit <code class="notranslate">^[[1S</code> (from <a href="https://github.com/lzybkr/PSReadLine/blob/master/PSReadLine/ConsoleLib.cs#L114">ConsoleLib.cs</a>, perhaps via <a href="https://github.com/lzybkr/PSReadLine/blob/46960b1fe442024923381eedd1c9100ded30d123/PSReadLine/ReadLine.cs#L926">ReadLine.cs</a>).</p>
<p dir="auto">Scrolling the viewport in this manner can:</p>
<ul dir="auto">
<li>destroy the user's scrollback buffer</li>
<li>force an expensive full-buffer repaint over a VT link (like ssh or pty)</li>
</ul>
<p dir="auto"><em>cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zadjii-msft/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zadjii-msft">@zadjii-msft</a></em></p>