hrkfdn / ncspot

Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong misalignment/redraws of UI

Angry-Maid opened this issue · comments

Describe the bug
Heavily misalignment and wrong redraws of UI.

To Reproduce
No idea how to reproduce because it was working fine, a day or two ago, no updates were done to either nushell, or to ncspot. Downgrading doesn't resolve this issue either. The only culprit so far that I can see is the Windows Terminal emu. Terminal was not resized.

Screenshots

WindowsTerminal_UoWIOAT76F.mp4

System (please complete the following information):

  • OS: Windows 11 Build 22631
  • Terminal: Windows Terminal v1.19.10821.0 and nu v0.91.0, misaligment also appears in cmd and pwsh
  • Version: 1.1.0
  • Installed from: scoop, installing v1.0.0 from winget leads to same result

I think it may be the issue of new version of Windows Terminal with tab size being inconsistent and rendering in wrong place.

WindowsTerminal_0nFUBpj5Ha.mp4

I don't have a Windows machine to test this on, but this does indeed sound like an issue with Windows and not ncspot

So testing it out without Windows Terminal emu and just running shells as they are it works fine. Alacritty term emu also works fine. There is still weird caret behavior like in 2nd video when I try out doing same stuff with tabulation in python interactive but I think it's just the problem with locale or something else(which would also be interesting to figure out and fix).
Some of the Windows Terminal updated broke caret behavior and it isn't getting reset back.

Encountered the same issue today in Windows terminal.

Has anyone tried it running on the Preview build of Windows Terminal?

I did run it on Preview build. Same problem

I built ncspot manually inside WSL2. There are no UI issues there. This seems like a Windows-shell issue or some sort.