-
Notifications
You must be signed in to change notification settings - Fork 45
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
Konsole: garbled after applying theme #35
Comments
I think konsole does its own emulation (it doesn't use vte), however it does appear to support the necessary escape codes. I just tested the latest version of konsole on my archbox and it seems to work. Are you using the latest version of theme.sh? |
Hey yeah I also find it a little weird, I am on v1.0.1. |
The latest version of the script is 1.1.5, so you may want to upgrade. There have been several bug fixes and additional themes since the original release. |
Oh ok good to know, I was on https://aur.archlinux.org/packages/theme.sh which is apparently outdated. Anyways, sadly it does not fix the issue though :/ |
@rvaiya is it correct that the latest release tag is 1.0.7? I'm maintaining the Arch package build for theme.sh and would like to bump it to 1.1.5 to support the latest version. |
Ok I have just figured out how to reproduce the issue: Under Edit Pofile -> General -> Edit environment variables
I have found out that EDIT: EDIT2: |
Oops, looks like like the tags were sitting in my local repo. I have updated them now, thanks for letting me know. Perhaps you might consider making a
It is unclear from your original post whether or not you are having a problem with interactive mode or the script
Setting colorterm just causes the script to assume truecolor support which means it will try and paint the colors in the preview window rather than changing the theme colors on the fly (falling back to I am testing on 21.12.1. |
I should note that even though the colors change it requires new content to be printed to the screen or the window to be refocused before the changes take effect. This indeed appears to be a konsole bug, but it might be related to the fact that I am running it outside of KDE. |
Ok sorry if my bug description was unclear:
Produces garbled text when when konsole is started with |
That is indeed quite odd. The |
@rvaiya Yes when I do that the output is identical. I was talking about starting konsole with that environment variable. COLORTERM= konsole
When starting console with COLORTERM=truecolor konsole
Yes I am running v1.1.5 |
This still works for me. What is your |
Yes I know, by default konsole has My konsole version is 21.12.1 on ArchLinux. @pjvds @lemnos would you maybe be so kind and see if you can reproduce the issue on your side? |
Progressing a little bit here. It seems this is not happening in a bash session. But it is happening for me with zsh. I have powerlevel10k and zsh4humans installed not sure if that interferes. UPDATE: UPDATE 2: |
This makes more sense. tmux detection is a different beast altogether. Having said that, it seems What is the output of You might want to try running tmux with an empty |
@lemnos This issue is eating me up :D The problem is that I cannot reproduce this with standalone tmux. Heck I do not even make use of tmux other than using zsh4human, which apparently uses tmux in a specific way that manages to break konsole (in conjunction with theme.sh). So here are updated reproduction steps:
Now your chances of breaking are very high :D
It must be how z4h uses tmux internally. I do not even have a |
I don't have time to try this right now, but I'll experiment later when I have some free time.
This would suggest tmux is not running. Is this with or without zsh4humans seems to do a bunch of weird things. My guess is that |
Totally understandable, sadly it is the only way I know it can be reproduced at this time.
This would suggest it usually, but it seems z4h uses tmux in some unconventional way internally.
With
This might be true. What strikes me as odd is that other terminals are handling it fine. Or at least kitty, alacritty, foot present do not exhibit this behavior. |
It seems z4h is broken and the author refuses to fix it. Details can be found in the issue you linked to. I am closing this for now. |
Following the conversation it seems to me, that |
The provided code is useless since theme.sh aims to be POSIX compliant. I am familiar with the referenced escape sequences and have deliberately chosen not to use them for performance reasons. They shouldn't be necessary in this case. If the user's |
So
theme.sh
works great for me on terminals like alacritty or foot.But on Konsole, it's completely garbled:
It is using libvte so shouldn't it support OSC 4/11 ?
The text was updated successfully, but these errors were encountered: