I'm trying to programmatically query the background color of my terminal with
echo -ne "\e]11;?\a"
but the output appears blank. The issue arises using both Terminal.app and iTerm 3, in both Zsh and Bash, using any number of color schemes. When I redirect the output to a file instead, opening the file in Vi with
vi -u None, I see the following:
The value of
What's going on here? How can I get my terminal background color and why isn't the query sequence working?