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

Don't reset color in konsole #8

Open
00sapo opened this issue Mar 11, 2024 · 3 comments
Open

Don't reset color in konsole #8

00sapo opened this issue Mar 11, 2024 · 3 comments

Comments

@00sapo
Copy link

00sapo commented Mar 11, 2024

On exit, background color is not reset for konsole

@typicode
Copy link
Owner

Thanks for the report :) If there isn't one already, an issue should probably be created on konsole repo.
I assume it may not support the reset escape code (\\033]111\\007).

@00sapo
Copy link
Author

00sapo commented Mar 12, 2024

There are indeed some bugs related to ANSI code in Konsole. However, I cannot connect this problem to any of those, and neither check if the problem is of konsole. Could you give me a shell script that changes the whole terminal background to a certain color (e.g. black) and then reset it? I'm thinking to something like

printf '\e[0mNo background\n\e[41mRed Background\n\e[0mBackground original'

However, the above only changes the background of the text. I can't find the proper ANSI code for testing...

@typicode
Copy link
Owner

Currently, I probably won't have much time to spend on this issue. Sorry :/

That being said, this plugin is pretty simple, so you can find all the codes here for testing:
https://github.com/typicode/bg.nvim/blob/main/plugin/bg.lua#L10

For comparisons with Konsole, you can try your shell script with Alacritty or Foot (or a listed terminal), they support the escape sequence.

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