Light Dark Report is a control sequence that reports the terminal's operating system light/dark color preference.
CSI ? 997 ; 1 n Copy
CSI ? 997 ; 1 n
for dark mode
CSI ? 997 ; 2 n Copy
CSI ? 997 ; 2 n
for light mode
Whether dark mode is enabled
The light/dark report escape sequence
https://contour-terminal.org/vt-extensions/color-palette-update-notifications/
Light Dark Report is a control sequence that reports the terminal's operating system light/dark color preference.
for dark mode
for light mode