microsoft / microsoft/terminal

Scroll up/down (SU/SD) don't copy wide glyph padding spaces

Open
#17,555 5 comments 0 reactions 1 assignee Claimed by @lhecker View on GitHub
Area-Output Issue-Bug Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

_No response_

### Windows build number

_No response_

### Other Software

_No response_

### Steps to reproduce

* pwsh
```pwsh
"`e[?1049h`e[Hbefore scroll`e[999C`e[2Dfoo`r`n`e[999C`e[2D✨✨"; sleep 1; "`e[S`e[Hafter scroll "; sleep 3; "`e[?1049l"
```
* bash
```sh
printf "\e[?1049h\e[Hbefore scroll\e[999C\e[2Dfoo\r\n\e[999C\e[2D✨✨"; sleep 1; printf "\e[S\e[Hafter scroll "; sleep 3; printf "\e[?1049l"
```

### Expected Behavior

![image](https://github.com/user-attachments/assets/1513e270-92d7-4980-9977-a5334ec088ef)

### Actual Behavior

![image](https://github.com/user-attachments/assets/0605aa49-3673-434a-bfb2-a263b2b5255d)

The fundamental problem is that `ROW::CopyFrom` doesn't clear to the end of the line (like CSI K).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.