PhpSchool\CliMenu\Terminal\TerminalFactory::fromSystem PHP Method

fromSystem() public static method

public static fromSystem ( ) : PhpSchool\CliMenu\Terminal\TerminalInterface
return PhpSchool\CliMenu\Terminal\TerminalInterface
    public static function fromSystem()
    {
        return new UnixTerminal();
    }

Usage Example

Example #1
0
 /**
  * @param CliMenuBuilder|null $parent
  */
 public function __construct(CliMenuBuilder $parent = null)
 {
     $this->parent = $parent;
     $this->terminal = TerminalFactory::fromSystem();
     $this->style = $this->getStyleClassDefaults();
     $this->style['terminal'] = $this->terminal;
 }
All Usage Examples Of PhpSchool\CliMenu\Terminal\TerminalFactory::fromSystem
TerminalFactory