- $s = "Days Age Name Event Date\n";
- $s .= "---- --- ---------------------------------------- -------------------- ----------\n";
+ if ($this->ansi) {
+ $this->cc = new \Console_Color2();
+ }
+
+ $tbl = new \Console_Table(
+ CONSOLE_TABLE_ALIGN_LEFT,
+ array('sect' => '', 'rule' => '-', 'vert' => ''),
+ 1, null, $this->ansi
+ );
+ $tbl->setAlign(0, CONSOLE_TABLE_ALIGN_RIGHT);
+ $tbl->setAlign(1, CONSOLE_TABLE_ALIGN_RIGHT);
+
+ $tbl->setHeaders(
+ $this->ansiWrap(
+ array('Days', 'Age', 'Name', 'Event', 'Date', 'Day'),
+ '%_%9'
+ )
+ );
+ $tbl->setBorderVisibility(
+ array(
+ 'left' => false,
+ 'right' => false,
+ 'top' => true,
+ 'bottom' => false,
+ 'inner' => true,
+ )
+ );
+