2013-10-22 14:26:45 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Cli;
|
|
|
|
|
|
|
|
use Icinga\Cli\Screen\AnsiScreen;
|
|
|
|
|
|
|
|
class Screen
|
|
|
|
{
|
|
|
|
protected static $instance;
|
|
|
|
|
2013-10-22 15:09:41 +02:00
|
|
|
public static function instance()
|
2013-10-22 14:26:45 +02:00
|
|
|
{
|
|
|
|
if (self::$instance === null) {
|
|
|
|
self::$instance = new AnsiScreen();
|
|
|
|
}
|
|
|
|
return self::$instance;
|
|
|
|
}
|
|
|
|
}
|