

免费资源网 – https://freexyz.cn/
BASH shell下设置字体及背景颜色
echo -e “e[31mteste[41m”
e[30m 将字符的显示颜色改为黑色
e[31m 将字符的显示颜色改为红色
e[32m 将字符的显示颜色改为绿色
e[33m 将字符的显示颜色改为淡红色
e[34m 将字符的显示颜色改为蓝色
e[35m 将字符的显示颜色改为紫色
e[36m 将字符的显示颜色改为淡蓝色
e[37m 将字符的显示颜色改为灰色
e[40m — e[47m 设置背景色
e[40m 将背景色设置为黑色
e[41m 将背景色设置为红色
e[42m 将背景色设置为绿色
e[43m 将背景色设置为淡红色
e[44m 将背景色设置为蓝色
e[45m 将背景色设置为紫色
e[46m 将背景色设置为淡蓝色
e[47m 将背景色设置为灰色
设置Linux shell的输出效果[字体颜色,样式等]
echo -e “