【发布时间】:2013-11-11 16:03:05
【问题描述】:
我正在尝试自定义我的 git shell,我发现这很有趣 article 但是你可以看到它使用 tput 来设置颜色定义,我无法让它在 Windows 上工作,因为 tput 是'不是 Windows 原生的,有没有其他方法可以做 th
BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
LIME_YELLOW=$(tput setaf 190)
POWDER_BLUE=$(tput setaf 153)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
BRIGHT=$(tput bold)
NORMAL=$(tput sgr0)
BLINK=$(tput blink)
REVERSE=$(tput smso)
UNDERLINE=$(tput smul)
【问题讨论】: