SUMMARY Konsole already supports OSC 10 and 11 (text fg/bg colors) but doesn't support OSC 110 and 111 (reset for fg/bg colors), and OSC 12 and 112 (text cursor color and reset). STEPS TO REPRODUCE 1. run the command: printf '\e]12;red\a' OBSERVED RESULT Cursor color doesn't change with any Appearence>Cursor settings, unlike in xterm or libvte-based terminals (gnome-terminal, xfce4-terminal, terminator). EXPECTED RESULT The cursor color changes the same way as in xterm and libvte. SOFTWARE/OS VERSIONS Linux/KDE Plasma: EndeavourOS KDE Plasma Version: 6.1.0 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.1 ADDITIONAL INFORMATION My use case is I want to change neovim cursor color depending on the mode. I don't care about OSC 110 and 111 support, but this seems adjacent enough to include it in this issue.
Created attachment 170762 [details] xterm, xfce4-terminal, terminator and Konsole
The closest thing I found to the documentation is the "XTerm Control Sequences" pdf file: https://invisible-island.net/xterm/ctlseqs/ctlseqs.pdf, pages 34-36.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/1029
Git commit a213c3df04cd608f6db7e2ae6d407f4c420cc431 by Matan Ziv-Av. Committed on 14/09/2024 at 10:28. Pushed by hindenburg into branch 'master'. Add support for setting the cursor color (OSC 12) Parse OSC 12 and set the cursor color accordingly. M +12 -0 src/Vt102Emulation.cpp M +1 -0 src/Vt102Emulation.h https://invent.kde.org/utilities/konsole/-/commit/a213c3df04cd608f6db7e2ae6d407f4c420cc431