I have a script that runs in a tabbed terminal window which will periodically update the tab's title with some text using:
printf 'e]1;Some Texta'
This works great, but I'd like to take to take it a step further and colorize the text under certain conditions. I can set the actual terminal's text color by doing something like:
printf 'e[31mRed Text'
but, I can't quite figure out how to make this apply to the tab's title.
I guess there are really two questions here:
- Is it even possible to change the color of the title text in the window/tab (specifically for OSX's Terminal)?
- If it is possible, what sort of magic is necessary to make this happen from a script?
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 293
تاريخ: چهارشنبه
30 تير
1395 ساعت: 10:02