This behaviour is used as a screensaver for the terminal.
To disable it Edit /etc/default/grub and add consoleblank=0 in the GRUB_CMDLINE_LINUX_DEFAULT option:
/etc/default/grub
consoleblank=0
GRUB_CMDLINE_LINUX_DEFAULT
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0"
After updating from PHP 5.4 to PHP 5.6 I saw there was no colors anymore when running commands with the console component.
This happend because I didn’t install php-poxis extension. So it was fixed by just running…
php-poxis