ncspot icon indicating copy to clipboard operation
ncspot copied to clipboard

Wrong misalignment/redraws of UI

Open Angry-Maid opened this issue 10 months ago • 7 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

https://github.com/hrkfdn/ncspot/assets/24209146/0e4eb8f8-5112-44c2-91a7-33c083e79064

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

Angry-Maid avatar Mar 29 '24 10:03 Angry-Maid

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

https://github.com/hrkfdn/ncspot/assets/24209146/153de14d-fd33-44c6-92d4-39e66309fd32

Angry-Maid avatar Mar 29 '24 14:03 Angry-Maid

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

Bettehem avatar Mar 29 '24 16:03 Bettehem

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.

Angry-Maid avatar Mar 29 '24 21:03 Angry-Maid

Encountered the same issue today in Windows terminal.

kand7dev avatar Apr 04 '24 20:04 kand7dev

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

kand7dev avatar Apr 08 '24 17:04 kand7dev

I did run it on Preview build. Same problem

Angry-Maid avatar Apr 09 '24 01:04 Angry-Maid

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

kand7dev avatar May 14 '24 20:05 kand7dev