Rob*_*y75 3 bash dash-shell
在bash中,您可以使用(例如)为输出着色
echo -e "\e[34mblue text\e[0m"
但这不适用于破折号。
有没有办法获得带有破折号的彩色输出?
Cyr*_*rus 5
使用破折号,bash,ksh,fish和zsh:
printf '%b' "\033[34;1mblue text\033[0m\n"
归档时间:
9 年,8 月 前
查看次数:
295 次
最近记录: