我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

ANSI这个序列是什么意思?

I know that this is ANSI color sequence, but what does this mean?

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

\x1b is escape (ASCII 27)

What is 38? What is 05? and What is 4m?

It seems there are no such thing on the list?

Ah I see, wikipedia has more complete reference

38 is Reserved for extended set foreground color

05 is next is the color index

4 is color blue

近期文章

  • 在GoLang中将JSON目录树转换为缩进的纯文本
  • 在golang中无需结构即可对JSON数据进行最少的修改
  • 如何在Go中将所有编码都转换为UTF 8?
  • 获取响应行错误-Redigo Redis Client
  • 如何在结构上定义可变参数字段? 走
  • Golang Xml解组,无价值
  • 在Go中,当一个函数返回错误时,其他变量是否总是其“零”值?
  • 当第一个完成时如何安全绕开其他goroutine的结果
  • 通道上的cap()不是常数?
  • 在golang http.NewRequest中包含%2F
  • 如何使用Go在命令行上执行diff?
  • 在golang中,如何覆盖嵌入式结构的方法
  • 如何使用.a文件编译golang程序(无源)
  • 使用多个goroutine写入同一通道
  • Json Decode无法将json中的时间戳解析为Go结构
  • 如何在Go中使用portaudio和sndfile播放wav文件
  • golang:在远程服务器上执行shell命令
  • 如果我知道golang通道的所有值都是有限的,是否应该使用它们?
  • debuild notify make [1]:go:找不到命令
  • 高朗出口型

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华