vim uses control sequence 'echo -e "\033]11;?\a"' to request real background color -- to detect whether terminal has dark or light background. This is, however not yet supported by konsole (but is by xterm or gnome-terminal). The painful result of this is that anytime you "ssh-connect" to remote machine in konsole with dark background (default in konsole anyway), remote vim takes the default style -- 'set background=light' and the text is mostly unreadable. Implemented 'COLORFGBG' variable does not help because that is widely filtered... (e.g. by ssh itself). More info: https://bugzilla.redhat.com/show_bug.cgi?id=1262843 Reproducible: Always Steps to Reproduce: 1. Run konsole and execute 'echo -e "\033]11;?\a" && sleep 10' 2. You should see something like: ^[]11;rgb:0000/0000/0000 Actual Results: No response given by konsole.
Created attachment 94657 [details] Implemented feature.
Created attachment 94658 [details] Implemented feature against KDE/4.14.
Created attachment 94664 [details] Implemented feature.
I'd encourage you to consider submitting this feature patch to reviewboard.kde.org
Thanks for the suggestion, https://git.reviewboard.kde.org/r/125333/
Git commit 9076c3af475e3b0d8cc3158e60c41ac64725b9ee by Kurt Hindenburg. Committed on 03/10/2015 at 19:26. Pushed by hindenburg into branch 'master'. Implement xterm's background color request/reply vim uses control sequence 'echo -e "\033]11;?\a"' to request real background color -- to detect whether terminal has dark or light background. Thanks to Pavel Raiskup praiskup redhat com REVIEW: 125333 FIXED-IN: 15.12 M +5 -0 src/Emulation.h M +22 -0 src/Session.cpp M +13 -0 src/Session.h M +10 -0 src/SessionController.cpp M +1 -0 src/SessionController.h M +14 -8 src/Vt102Emulation.cpp M +2 -1 src/Vt102Emulation.h http://commits.kde.org/konsole/9076c3af475e3b0d8cc3158e60c41ac64725b9ee