microsoft / microsoft/terminal
Clear buffer doesn't clear scroll marks
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
Windows Terminal version
1.24.10921.0
Windows build number
10.0.19045.0
Other Software
- bash (inside WSL, and with Git for Windows Bash)
- cmd (Windows Command Prompt)
I'm experiencing this on two other Windows 11 machines, as well.
Steps to reproduce
- Fill in scroll marks, f.e. by repeated Enter (empty command)
- Press Ctrl+Shift+K (Clear buffer)
Expected Behavior
Scroll marks should be cleared.
Actual Behavior
Scroll marks are not cleared, and they are not updated properly further.
After Ctrl+Shift+K:
Repeat empty commands halfway though and issue cls command:
Only the marks before the current position get cleared:
Next, no new marks appear:
until I pass the "stale" marks position and issue cls again.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Windows Terminal by creating scroll marks with repeated empty commands, pressing Ctrl+Shift+K, and then running cls. Trace the clear-buffer and scroll-mark handling from that behavior; done means all existing marks are removed and new marks continue updating correctly afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100