Command and prompt style can be modified

This commit is contained in:
Christopher Vagnetoft
2016-04-29 02:25:57 +02:00
parent 0c64bc2f70
commit 06d879853c
3 changed files with 47 additions and 3 deletions

View File

@ -43,6 +43,8 @@ class MyShell extends Shell
$lt = $t + 5;
echo date("Y-m-d h:i:s")."\n";
}
$fg = ($this->seq % 7) + 1;
$this->setPromptStyle("3{$fg}");
}
protected function onCommand($buffer)