<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows NT 10.0.18363.0
Version: 0.6.3161.0"><pre lang="none" class="notranslate"><code class="notranslate">Microsoft Windows NT 10.0.18363.0
Version: 0.6.3161.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Run vim from PowerShell with the following PowerShell function:</p>
<div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    function vim
    {
        Write-Host &quot;$([char]0x1b)[?1049h&quot;
        vim.exe @args
        Write-Host &quot;$([char]0x1b)[?1049l&quot;
    }"><pre class="notranslate">    <span class="pl-k">function</span> <span class="pl-en">vim</span>
    {
        <span class="pl-c1">Write-Host</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-k"><span class="pl-pse">$</span></span><span class="pl-pse">(</span>[<span class="pl-k">char</span>]<span class="pl-c1">0x1b</span><span class="pl-pse">)</span>[?1049h<span class="pl-pds">"</span></span>
        <span class="pl-c1">vim.exe</span> <span class="pl-smi">@args</span>
        <span class="pl-c1">Write-Host</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-k"><span class="pl-pse">$</span></span><span class="pl-pse">(</span>[<span class="pl-k">char</span>]<span class="pl-c1">0x1b</span><span class="pl-pse">)</span>[?1049l<span class="pl-pds">"</span></span>
    }</pre></div>
<p dir="auto">This is used to work around how vim screen scrapes the screen so it can restore it, but colors are messed up because screen scraping doesn't work with 24 bit colors.</p>
<p dir="auto">Edit a file with at least double the number of lines in the window.</p>
<p dir="auto">Go to the bottom, reposition the cursor, and move the cursor line wise up - rendering will be horribly broken.<br>
<kbd>G</kbd><kbd>z</kbd><kbd>t</kbd><kbd>k</kbd><kbd>k</kbd><kbd>k</kbd><kbd>k</kbd></p>

<p dir="auto">Here's a guess at the commit introducing the regression: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="506022008" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3160" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/3160/hovercard" href="https://github.com/microsoft/terminal/pull/3160">#3160</a></p>
<h1 dir="auto">Expected behavior</h1>

<p dir="auto">Rendering works the same as on the main screen buffer.</p>
<h1 dir="auto">Actual behavior</h1>

<p dir="auto">Lines are duplicated or sometimes not, it's super confusing to understand what exactly is happening.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">Basically, include Hebrew glyphs in Cascadia.</p>

<p dir="auto">In general, in terminal contexts, using Hebrew is a total nightmare. Very, very few Monospace fonts actually work with Hebrew, and using font fallback isn't a good solution (look at what it does).<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16987694/60954447-a895d100-a307-11e9-8bbd-a0b30408e7f1.png"><img src="https://user-images.githubusercontent.com/16987694/60954447-a895d100-a307-11e9-8bbd-a0b30408e7f1.png" alt="Font fallback makes ransom notes here, and messes up directionality too" style="max-width: 100%;"></a><br>
Having Hebrew glyphs supported in a modern terminal font would just make the experience work well out of the box.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">I understand that Arabic and Farsi is very complicated. But Hebrew really isn't. The entire Unicode block is 88 points. Hebrew doesn't have ligatures or any complex font behavior, at least for letters. And even diacritics could be omitted and it'd still be super duper useful and cover 99%+ of use cases (Hebrew is almost never written with vocalization). So just covering the Hebrew alphabet would only require 27 glyphs.<br>
And even if they're super basic and ugly it would <em>still</em> be really useful, just not having the layout break and stuff. Even just copying the glyphs for Hebrew from Courier New or Liberation Mono and resizing them for Cascadia would be a major help.</p>