当前位置:网站首页>shell 颜色输出

shell 颜色输出

2022-06-09 01:18:00 ghostwritten

shell 颜色输出

  • color.sh
#!/usr/bin/env bash

for c in 90 31 91 32 33 34 35 95 36 97; do
	echo -en "\r \e[${c}m LOVE \e[0m "
	sleep 1
done

执行:
在这里插入图片描述

原网站

版权声明
本文为[ghostwritten]所创,转载请带上原文链接,感谢
https://ghostwritten.blog.csdn.net/article/details/125163330