public function __construct()
{
$cc = new \Console_Color2();
- $this->begin = $cc->convert('%y');
- $this->end = $cc->convert('%n');
- $this->blue = $cc->convert('%b');
- $this->red = $cc->convert('%r');
- $this->white = $cc->convert('%w');
+ $this->begin = $cc->convert('%y');
+ $this->end = $cc->convert('%n');
+ $this->blue = $cc->convert('%b');
+ $this->red = $cc->convert('%r');
+ $this->white = $cc->convert('%w');
$this->purple = $cc->convert('%p');
}
{
echo sprintf(
$this->purple . 'EDSS1_Message' . $this->end
- . ' type %02X '
- . $this->purple . '%s' . $this->end
+ . ' type 0x%02X '
+ . $this->blue . '%s' . $this->end
. ' SAPI %d, CR %d, TEI %d, call %d-%s'
. ', %d parameters',
$msg->type,
foreach ($msg->parameters as $param) {
echo sprintf(
- " Parameter type %02X%s, %d bytes: %s\n",
+ " Parameter type 0x%02X%s, %d bytes: %s\n",
$param->type,
$param->title
? ' ' . $this->purple . $param->title . $this->end
- : '',
+ : ' ' . $this->purple . $param->getTypeName() . $this->end,
$param->length,
preg_replace('/[^[:print:]]/', '?', $param->data)
. (isset($param->number)