microsoft/Terminal

How to avoid changing cursorShape when focus terminal window if I set `unfocusedAppearance`

Open

#18.174 aperta il 11 nov 2024

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)C++ (3212 fork)batch import
Area-TerminalControlHelp WantedIssue-BugProduct-Terminal

Metriche repository

Star
 (35.764 star)
Metriche merge PR
 (Merge medio 27g 19h) (24 PR mergiate in 30 g)

Descrizione

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
 "opacity": 50,
 "cursorShape": "underscore",
 "unfocusedAppearance": {
      "opacity": 90
 },
  1. open nvim, current cursor shape is block
  2. press alt+tab to focus another window, then press it again to focus back to terminal
  3. 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.

Guida contributor