Const
A control sequence that requests the terminal to report its operating system light/dark color preference. Supported terminals should respond with a lightDarkReport sequence as follows:
CSI ? 997 ; 1 n Copy
CSI ? 997 ; 1 n
for dark mode
CSI ? 997 ; 2 n Copy
CSI ? 997 ; 2 n
for light mode
https://contour-terminal.org/vt-extensions/color-palette-update-notifications/
A control sequence that requests the terminal to report its operating system light/dark color preference. Supported terminals should respond with a lightDarkReport sequence as follows:
for dark mode
for light mode