Example #1
0
 /**
  * Terminal class constructor
  *
  * return \Blink\Terminal $this
  */
 public function __construct()
 {
     // Populate the terminals attributes
     $this->hasColor = ncurses_has_colors();
     $this->hasIl = (bool) ncurses_has_il();
     $this->hasIc = (bool) ncurses_has_ic();
     $this->attributes = ncurses_termattrs();
     $this->name = ncurses_termname();
     $this->longName = ncurses_longname();
 }
Example #2
0
 public function longName()
 {
     return ncurses_longname();
 }