4

I got problem with gnome-terminal with oh-my-zsh and powerlevel9k theme. When i resize terminal during redrawing my line really messing up. I will show you screen from my desktop to check problem. I've searched how resolve this problem but i didn't find how fix this issue. Anybody can help me? screen with issue

I use pop-os 19.04 with gnome-terminal version 3.32.1. If anybody can help i will be really grateful!

pepe44
  • 41
  • 2

2 Answers2

2

That's how zsh does it. You could call it a bug. I have a fix in https://github.com/romkatv/zsh/tree/fix-winchanged if this bothers you. My attempt to upstream this patch was met with negative feedback and no enthusiasm. Unfortunately, the criticism was too vague to allow me to respond to it and I wasn't able to get any additional details after asking for clarification. I decided to abandon this patch even though it works.

See this powerlevel10k issue for details.

Roman Perepelitsa
  • 2,148
  • 19
  • 14
1

This is a terminal thing, not a bug of Powerlevel9k or any other prompt themes.

So, unfortunately, this really isn't something P9k can fix. This is due to how your terminal emulator is triggering re-draws of the prompt, and different emulators handle it differently. This is why you don't see this problem on iTerm2 when you resize in one direction, but it does appear when you do it twice, etc.,

Sorry, all, but this is a terminal thing, not a P9k thing! :(

In my test on macOS, this duplicate redrawing doesn't appear in iTerm2, kitty, alacritty.

References

Simba
  • 23,537
  • 7
  • 64
  • 76