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

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

Copyright © ghostwritten 浙ICP备2020032454号 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-06-22 16:12:33

results matching ""

    No results matching ""