3 ms·
You can change the colour of the title bar in iTerm with an ansi code! I have different colours for all of my servers: http://i.imgur.com/mdF3XBz.png http://i.i
by x0 11y ago
You can change the colour of the title bar in iTerm with an ansi code! I have different colours for all of my servers: http://i.imgur.com/mdF3XBz.png http://i.imgur.com/mdF3XBz.png
This will give you a title bar with RGB values 20, 20, 20:
printf -- $'\033]6;1;bg;red;brightness;20\a\033]6;1;bg;green;brightness;20\a\033]6;1;bg;blue;brightness;20\a'
Documentation: https://iterm2.com/documentation-escape-codes.html https://iterm2.com/documentation-escape-codes.html
- alanh 11y agoHow are you doing this in your servers? Adding it to your shell profiles on said servers?
- x0 11y agoIt's in my .zlogin or .zshrc on my servers, and it's in my PS1 on my home computer, so when I exit the servers it resets nicely.
- isomorphic 11y agoI didn't know that. Thank you!
- isomorphic 11y agoThis comment may be lost, but for Google posterity, it appears that this feature only sets the window titlebar if you aren't displaying the tab bar. Otherwise, the escape codes set the color of the tab. It would be nice to have separate escape sequences for the window titlebar and for the tabs. My interest in this is to dim the glaring-white strip of the Mac OS X window chrome when I have dark tabs, a dark-background terminal, and a dark menubar. If you have many such dark terminals open, the Mac OS X window chrome really interferes with the visual consistency of the setup.
- theinternetman 11y agoWoah, they really should shout about this feature more.