microsoft / microsoft/terminal
Cursor position is wrong after exiting vim
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Windows Terminal version
1.18.2822.0
### Windows build number
10.0.22631.0
### Other Software
vim 9.0.2081 (installed via scoop)
Power Shell 7.3.9
### Steps to reproduce
1. Make sure your monitor can display >60 lines in Windows Terminal.
2. Move cursor to the end of the monitor by entering `Enter` :)
3. `vim -u NONE test.txt` to open vim then exit.
https://github.com/microsoft/terminal/assets/16728230/0e5f2549-4caf-458c-a0f4-59c72fe617d5
It can't be reproduced if I use pwsh7 directly (without Windows Terminal), so maybe it's a problem of Windows Terminal?
### Expected Behavior
After exiting vim, the cursor should be at the last line of the monitor.
### Actual Behavior
After exiting vim, the cursor is in the middle of the monitor (~60th line). And `cls` will not clear the bottom half of the monitor.
Contributor guide
Research direction
Reproduce the behavior in Windows Terminal 1.18.2822.0 using PowerShell 7.3.9, `vim -u NONE test.txt`, and the listed Windows build, then compare it with running pwsh7 directly. Investigate the cursor position and `cls` behavior after Vim exits; done means the cursor remains on the monitor's last line and clearing works across the lower half.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell, vim
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100