|
Does Ghostty supports DEC mode 203 and queried like: printf '\e[?2031$p'I was under the impression tha the expected response is either
Here's how I'm currently querying it: printf '\e[?2031$p'; dd bs=1 count=32 2>/dev/null < /dev/tty | cat -vAnd this is the kind of the script I’m aiming to use: printf '\033[?2031$p' > /dev/tty
resp=$(dd bs=1 count=32 2>/dev/null < /dev/tty)
case "$resp" in
*"[?2031;1\$y"*) echo light ;;
*"[?2031;2\$y"*) echo dark ;;
*) echo not-support ;;
esacAny ideas? |
Answered by
jcollie
May 20, 2025
Replies: 1 comment 2 replies
|
Mode 2031 is used to turn on async mode change reports in the future. If you want to query the status now you need to send See: |
2 replies
Answer selected by
jcollie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Mode 2031 is used to turn on async mode change reports in the future. If you want to query the status now you need to send
CSI ? 996 n.See:
https://github.com/contour-terminal/contour/blob/f3c3334aa5c861348c5bbe8ffe572c872eef2e08/docs/vt-extensions/color-palette-update-notifications.md