在不使用任何额外模块的情况下,如何在Perl的标准输出中为文本着色?
我们可以使用Term::ANSIColor
。
如果您不想使用任何模块,请查看http://en.wikipedia.org/wiki/ANSI_escape_code以了解要输出的控制序列。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.