Change terminal window background color and text

邮差的信 提交于 2020-01-05 07:14:23

问题


I'm very new to development and I apologise if this is nooby or even not possible. There are similar questions to this but they all seem to be with other applications or plugins. Also because im new to this I do not know the correct terminology so forgive me there again.

At the moment I have this in a file called show_error_logs.sh

osascript <<END
tell application "Terminal"
    do script "cd /vagrant" in window 1
    do script "vagrant ssh" in window 1
    do script "sudo su" in window 1
    do script "cd /var/log/apache2/" in window 1
    do script "tail -f error.log" in window 1
end tell
END

This runs when I type show-errors as I set this up in my alias.

At the moment it is working great, I just want to theme it a little. I would like the background color to be black and the main text white.

Also. if it is possible I would like specific text to be different color. For example PHP Fatal error I would like to have a background color of red

Thanks for the help, links and explanations will be greatly appreciated as I do not just wanna copy and paste and not learn anything.

来源:https://stackoverflow.com/questions/51041061/change-terminal-window-background-color-and-text

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!