powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

Checkbox Glitch in Powerlevel10k with Foot Terminal

Open akrram09 opened this issue 1 year ago • 8 comments

Basically, the title says it all. I reported an issue to the dev of foot, and he said it’s an issue in p10k Here is the issue link

https://github.com/user-attachments/assets/7754cb69-1ef8-4fa8-9bca-3a6bec357ff0

akrram09 avatar Dec 27 '24 18:12 akrram09

What happens if you add the following lines at the very top of ~/.zshrc?

typeset -p COLUMNS
stty size
sleep 1
typeset -p COLUMNS
stty size

romkatv avatar Dec 28 '24 15:12 romkatv

typeset -p COLUMNS stty size sleep 1 typeset -p COLUMNS stty size

i get this when i lunch new terminal window Screen Shot 2024-12-28 at 21 13 36

akrram09 avatar Dec 28 '24 20:12 akrram09

This shows that the TTY declares its dimensions as 80x24 for some time after being created, and then switches to reporting the correct dimensions. As the result, zsh prints the initial prompt that is 80 columns wide, and then repaints its 116-column version when the TTY dimensions "change".

This means that the issue is either with the terminal, or with the window manager.

romkatv avatar Dec 28 '24 20:12 romkatv

This shows that the TTY declares its dimensions as 80x24 for some time after being created, and then switches to reporting the correct dimensions. As the result, zsh prints the initial prompt that is 80 columns wide, and then repaints its 116-column version when the TTY dimensions "change". This means that the issue is either with the terminal, or with the window manager.

so whats next i use sway as my window manager and this problem only occur in foot?

akrram09 avatar Dec 28 '24 20:12 akrram09

It's up to you whether and what to do next.

romkatv avatar Dec 28 '24 21:12 romkatv

It's up to you whether and what to do next.

which one i should go to and what to say exactly?

akrram09 avatar Dec 28 '24 21:12 akrram09

It's up to you whether and what to do next.

hey this problem also happen in alacritty

akrram09 avatar Jan 07 '25 15:01 akrram09

Note that you've already reproduced the bug without powerlevel10k here: https://github.com/romkatv/powerlevel10k/issues/2808#issuecomment-2564427164. This test shows without a shadow of a doubt that the issue is not in powerlevel10k or even zsh. It's in the terminal or the window manager.

romkatv avatar Jan 08 '25 07:01 romkatv