ramiromd
ramiromd

Reputation: 2029

Console blink text vía PHP

I'm trying to print blink text from a PHP Cli script.

My code is:

$resume = "\033[32m" . "Success: " . $this->success . "\033[0m\t";
$resume .= "\033[33m" . "Warnings: " . $this->warning . "\033[0m\t";
$resume .= "\033[31m" . "Failures: " . $this->failure . "\033[0m\t";
$resume .= "Skipped: " . $this->skipped . "\033[0m\t";
// BLINK HERE !!
$resume .= "\033[35;5m" . "Normalized: " . $this->getPercent() . "\033[0m\t";
$resume .= "Time elapsed: " . $this->getTimeElapsed() . "\n\n";

print($resume);

All colours works fine, but the blink text is not showing. Any ideas ?

Upvotes: 1

Views: 1311

Answers (1)

user149341
user149341

Reputation:

Not all terminal applications support blinking text. Check your terminal application's settings to see if it's an option; if that doesn't help, though, you're out of luck. Pick another attribute.

Upvotes: 1

Related Questions