Bug 514293

Summary: Wishlist: Konsole CSI Private Mode 2031 Support
Product: [Applications] konsole Reporter: mbagnara
Component: emulationAssignee: Konsole Bugs <konsole-bugs-null>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mbagnara 2026-01-07 20:00:15 UTC
SUMMARY
Greetings developers,
Terminal color schemes are commonly being integrated with external (global Dark/Light) color schemes. Often programs running inside the terminal need to be aware of the terminal's color scheme. An example of this would be NeoVim which is able to query the terminal for this preference in order for it to better match the system's preferred color scheme.

A standard being adopted by terminals such as 
Foot: https://codeberg.org/dnkl/foot/pulls/2075
tmux: https://github.com/tmux/tmux/issues/4269

https://github.com/contour-terminal/contour/blob/f3c3334aa5c861348c5bbe8ffe572c872eef2e08/docs/vt-extensions/color-palette-update-notifications.md

STEPS TO REPRODUCE
1. Terminal program emits CSI ? 997 ; 1 n/CSI ? 997 ; 2 n



OBSERVED RESULT
Konsole does not observe these escape codes

EXPECTED RESULT
1. Konsole responds with the CSI ? 997 ; 1 n 	DSR reply to indicate dark mode or CSI ? 997 ; 2 n 	DSR reply to indicate light mode

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.17.9-300.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 22 × Intel® Core™ Ultra 7 165H
Memory: 64 GiB of RAM (62.2 GiB usable)
Graphics Processor: Intel® Arc

ADDITIONAL INFORMATION