1. 首页
  2. 数据库
  3. 其它
  4. colorize:Ruby字符串类扩展。 它添加了一些方法来使用ANSI转义序列更容易地在控制台上设置颜色背景色和文本效果 源码

colorize:Ruby字符串类扩展。 它添加了一些方法来使用ANSI转义序列更容易地在控制台上设置颜色背景色和文本效果 源码

上传者: 2021-03-03 15:17:59上传 ZIP文件 24.17KB 热度 3次
着色 Ruby gem,用于使用ANSI转义序列为文本着色。 扩展String类或使用设置文本颜色,背景颜色和文本效果的方法添加ColorizedString 。 模式 require 'colorize'扩展String类 require 'colorized_string'添加ColorizedString类 产品特点 更改字符串颜色 更改字符串背景 改变弦效果 显示颜色样本 禁用着色 用法 require 'colorize' String . colors # return array of all possible colors names String . modes # return array of all possible modes String . color_samples # displays color samples in all combinations String . disable_colorization #
下载地址
用户评论