这段代码:
use Term::ANSIColor;
print color("blink bold red"), "TEST\n";
print color("reset");
在我使用过的任何 Linux 控制台上工作了很长时间。但是,当我在运行 Raspbian Stretch 的 Raspberry Pi 控制台(不是 Xwindows)上尝试它时,它只是将文本着色为红色但不会闪烁。任何人对我如何让它发挥作用有任何想法吗?
最佳答案
Attributes such as blink, italic, or bold may not work with the 256-color palette. -documentation
关于linux - perl Term::ANSIColor 在 Raspberry Pi 控制台上不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51003349/