microsoft / microsoft/terminal
How to avoid changing cursorShape when focus terminal window if I set `unfocusedAppearance`
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.21.2911.0
### Windows build number
10.0.22631.0
### Other Software
NVIM v0.10.2
### Steps to reproduce
1. snippet in settings.json
```json
"opacity": 50,
"cursorShape": "underscore",
"unfocusedAppearance": {
"opacity": 90
},
```
2. open `nvim`, current cursor shape is `block`
3. press `alt`+`tab` to focus another window, then press it again to focus back to terminal
4. cursor shape changes to `underscore`. (If I delete the `unfocusedAppearance` in settings.json, the cursor shape does not change after focus back)
### Expected Behavior
When I set `unfocusedAppearance`, do not change my cursor shape after focus back to terminal window.
### Actual Behavior
Cursor shape changes to `underscore` that I set in `cursorShape`.
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
Start with the settings.json behavior for unfocusedAppearance and cursorShape, then reproduce the Alt+Tab sequence with Windows Terminal and NVIM v0.10.2 on the reported Windows build. Done means returning focus to the terminal no longer changes the configured cursor shape when only unfocusedAppearance opacity is set.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, neovim
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100