Term::ANSIColor 使用
2015-07-29 11:08
387 查看
推荐用法:
运行一下脚本,就可以查看常用的颜色属性
use Term::ANSIColor qw(:constants); $Term::ANSIColor::AUTORESET = 1; print BOLD BLUE "This text is in bold blue.\n"; print "This text is normal.\n";
运行一下脚本,就可以查看常用的颜色属性
use Term::ANSIColor qw(:constants); $Term::ANSIColor::AUTORESET = 1; my @colors = qw(CLEAR RESET BOLD DARK UNDERLINE UNDERSCORE BLINK REVERSE CONCEALED BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE ON_BLACK ON_RED ON_GREEN ON_YELLOW ON_BLUE ON_MAGENTA ON_CYAN ON_WHITE); for my $color (@colors) { print eval $color, "$color"; print CLEAR, "\n"; }
相关文章推荐
- GCD理解(一)
- HTML DOCTYPE 重要性
- 【linux高级程序设计】(第十一章)System V进程间通信 1
- Java如何实现图片裁剪预览功能
- Web应用性能优化黄金法则
- 安装Zabbix-Agent yum方式
- 原生Js封装的产品图片360度展示
- 玩转Android---UI篇---GridView(网格布局)
- HDU5317 RGCDQ 质因子分解
- 不固定宽和高的div 水平和垂直都居中
- 内存对齐的影响
- 如何查看我的订单-REST的流程API设计案例
- inux查看进程的所有子进程和线程
- java访问控制的理解
- HDOJ 2120 Ice_cream's world I(并查集判断成环)
- 使用PhoneGap打包HTML成iOS应用
- hdu1203
- java Map对象排序demo
- URAL 1934 最短路变形
- 关于windows服务的操作