thestinger / termite

Termite is obsoleted by Alacritty. Termite was a keyboard-centric VTE-based terminal, aimed at use within a window manager with tiling and/or tabbing support.
https://github.com/alacritty/alacritty
2.74k stars 241 forks source link

% (percent) symbol appears in upper left corner of small terminals when rapid prompt enabled in zsh #748

Closed kylebarbour closed 3 years ago

kylebarbour commented 4 years ago

When I open small windows, a black-on-white percent symbol (see below) appears in the upper left corner. I notice this in conjunction with the rapid prompt options of zsh and powerlevel10k with minimal configuration settings, but can occur with zsh alone. Initially, I reported this against powerlevel10k (see romkatv/powerlevel10k/issues/887), but the maintainer was kind enough to clarify that the problem is in the terminal.

Percent in corner

I can verify that this occurs simultaneously with the terminal incorrectly reporting the starting dimensions as seen by putting stty size or typeset -p LINES COLUMNS at the top of .zshrc as suggested by the powerlevel10k maintainer. He suggested that this might be a results of a buggy VTE implementation, but that's past my personal knowledge.

System:

$ uname -srv
Linux 5.7.7-arch1-1 #1 SMP PREEMPT Wed, 01 Jul 2020 14:53:16 +0000

Window manager:

$ bspwm -v
0.9.7-10-g2ffd9c1
$ pacman -Qe | grep -e bspwm
bspwm 0.9.9-2

Terminal:

$ termite -v
termite v15
$ pacman -Qe | grep -e termite
termite 15-2

I installed termite using the standard Arch Linux repository via pacman -S.

Thank you for your software!

jfernandz commented 3 years ago

I think this is a duplicate of https://github.com/thestinger/termite/issues/741

jessdot commented 3 years ago

You should try to comment this lines in your zshrc, it works for me.

Write changes and close terminal, when open new instance only appears the prompt without % (percent) symbol.

image

kylebarbour commented 3 years ago

@jessdot Of course; the bug report is against this occuring with transient prompt enabled.

thestinger commented 3 years ago

Termite is obsolete. Please use Alacritty instead. See https://github.com/thestinger/termite#termite-is-obsoleted-by-alacritty for more details.