bg.nvim icon indicating copy to clipboard operation
bg.nvim copied to clipboard

Don't reset color in konsole

Open 00sapo opened this issue 1 year ago • 3 comments

On exit, background color is not reset for konsole

00sapo avatar Mar 11 '24 17:03 00sapo

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).

typicode avatar Mar 12 '24 00:03 typicode

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...

00sapo avatar Mar 12 '24 09:03 00sapo

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.

typicode avatar Mar 12 '24 10:03 typicode