Reputation: 960
This code:
use Term::ANSIColor;
print color("blink bold red"), "TEST\n";
print color("reset");
Has worked for eons on whatever linux console I have used it on. However, I when I try it on a Raspberry Pi console (not Xwindows) running Raspbian Stretch it simply colors the text red but does not blink. Anyone have any ideas as to how I can get this to work?
Upvotes: 1
Views: 255
Reputation: 960
After experimenting I can conclude that the reason that perl ANSI color's blink feature does not work on a Raspberry PI is because the monitor is connected via HDMI. perl ANSI color does in fact blink on a Raspberry PI if one logs in remotely from a machine with a VGA monitor.
Update: Further testing concludes the blinking feature will NOT work by using a HDMI to VGA adapter to connect a VGA monitor to the raspberry PI -- so save yourself the money. The only way possible to get perl ANSIColor's blink feature to work on a PI is by sshing to the machine from a VGA displayed machine.
Upvotes: 1
Reputation: 21676
Attributes such as blink, italic, or bold may not work with the 256-color palette. -documentation
Upvotes: 2