color Golang下的命令行色彩使用库 color

inhere2018-08-23 14:04:36 • 3087 次点击    
这是一个分享于 2018-08-23 14:04:36 的项目,其中的信息可能已经有所发展或是发生改变。

Golang下的命令行色彩使用库

功能特色

  • 使用简单方便
  • 支持丰富的颜色输出, 16色(4bit),256色(8bit),RGB色彩(24bit)
    • 16色(4bit)是最常用和支持最广的,支持Windows cmd.exe
    • 另外两种支持 linux mac 和 Windows下的 CONEMU git-bash mintty 等部分终端
  • 通用的API方法:Print Printf Println Sprint Sprintf
  • 同时支持html标签式的颜色渲染. eg: message
  • 基础色彩: Bold Black White Gray Red Green Yellow Blue Magenta Cyan
  • 扩展风格: Info Note Light Error Danger Notice Success Comment Primary Warning Question Secondary
  • 兼容Windows系统环境

basic-color

🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows. GO CLI 控制台颜色渲染工具库,支持16色,256色,RGB色彩渲染输出,使用类似于 Print/Sprintf,兼容并支持 Windows 环境的色彩渲染Read More

Latest commit to the master branch on 3-5-2025
Download as zip
授权协议:
MIT
开发语言:
golang 查看源码»
操作系统:
linux,mac,windows
3087 次点击  ∙  1 赞  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传