【问题标题】:ANSI what does this sequence mean?ANSI 这个序列是什么意思?
【发布时间】:2015-04-12 15:29:45
【问题描述】:

我知道这是ANSI color sequence,但这是什么意思?

BLUE = "\x1b[38;05;4m"

\x1b 是转义(ASCII 27)

38 是什么? 05 是什么? 什么是4m

列表上好像没有这种东西?

【问题讨论】:

    标签: go ansi-colors


    【解决方案1】:

    啊,我明白了,wikipedia 有更完整的参考

    38Reserved for extended set foreground color

    05next is the color index

    4color blue

    【讨论】:

    • 同时,“m”是 ANSI 代码终止符。
    猜你喜欢
    • 2011-12-17
    • 2011-04-11
    • 2018-10-29
    • 1970-01-01
    • 2017-05-25
    • 2011-04-14
    • 2010-10-03
    • 2013-02-21
    • 2015-01-09
    相关资源
    最近更新 更多