/**
* Draw the menu to stdout
*/
protected function draw()
{
$this->terminal->clean();
$this->terminal->moveCursorToTop();
echo "\n\n";
if (is_string($this->title)) {
$this->drawMenuItem(new LineBreakItem());
$this->drawMenuItem(new StaticItem($this->title));
$this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()));
}
array_map(function ($item, $index) {
$this->drawMenuItem($item, $index === $this->selectedItem);
}, $this->items, array_keys($this->items));
$this->drawMenuItem(new LineBreakItem());
echo "\n\n";
}