delta
delta copied to clipboard
🐛 Printing special terminal control characters "^[]11;rgb:0000/0000/0000^G"
.gitconfig has
[interactive]
diffFilter = delta --color-only
Running normally is fine.
But once in GNU screen, git diff results in extra chars being printed before and after the prompt:
^[]11;rgb:0000/0000/0000^G ... 11;rgb:0000/0000/0000
(Similar strangeness happening with using as pager.)
Hmm looks like something is going wrong with the dark/light mode detection introduced in #1615.
As a workaround you can disable this by passing --dark or --light to delta:
[interactive]
diffFilter = delta --color-only --dark
This is likely a bug in either terminal-colorsaurus (the library delta uses to detect the terminal's color scheme) or screen.
That did it, thank you!
This should be fixed now that 0.18.0 has been released.
Automatic color detection is now disabled in screen, so the --dark / --light workaround isn't needed anymore.
Nice, thanks @bash!