Hi everyone!
I'm using BTT since 2020.
Now I have a simple question:
It's possible to use ANSI Escape on Touch Bar?
I have last two lines, picked from a .log file, on Touch Bar.
I want to "color" some words using ANSI Escape.
It's possible?
Using that script on a simple bash shell, it works, I can see the color.
It doesn't work on Touch Bar.
#!/bin/bash
file="path_to_file"
if [ -e "$file" ]; then
tail -n 2 "$file" | sed -E 's/\[1;31m//g; s/\[1;32m//g; s/\[1;33m//g; s/\[0m//g; s/\[SUCCESS\]/'"$(echo -e '\033[32m')"'&'"$(echo -e '\033[0m')"/g''
else
echo "$file not found."
fi
Thanks for the answers!
MacBook Pro M1
Sonoma 14.2.1
BTT 4.356