Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox Glitch in Powerlevel10k with Foot Terminal #2808

Open
akrram09 opened this issue Dec 27, 2024 · 8 comments
Open

Checkbox Glitch in Powerlevel10k with Foot Terminal #2808

akrram09 opened this issue Dec 27, 2024 · 8 comments

Comments

@akrram09
Copy link

akrram09 commented Dec 27, 2024

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

record.mp4
@romkatv
Copy link
Owner

romkatv commented Dec 28, 2024

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

@akrram09
Copy link
Author

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

@romkatv
Copy link
Owner

romkatv commented Dec 28, 2024

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.

@akrram09
Copy link
Author

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?

@romkatv
Copy link
Owner

romkatv commented Dec 28, 2024

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

@akrram09
Copy link
Author

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

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

@akrram09
Copy link
Author

akrram09 commented Jan 7, 2025

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

hey this problem also happen in alacritty

@romkatv
Copy link
Owner

romkatv commented Jan 8, 2025

Note that you've already reproduced the bug without powerlevel10k here: #2808 (comment). 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants