Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #12 from griffbrad/patch-1
Browse files Browse the repository at this point in the history
Use the console adapter to write instead of echo.
  • Loading branch information
weierophinney committed Feb 8, 2016
2 parents 89116a5 + 9828356 commit 43fcaaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Prompt/Char.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public function show()
$char = $this->getConsole()->readChar($mask);

if ($this->echo) {
echo trim($char)."\n";
$this->getConsole()->writeLine(trim($char));
} else {
if ($this->promptText) {
echo "\n"; // skip to next line but only if we had any prompt text
$this->getConsole()->writeLine(); // skip to next line but only if we had any prompt text
}
}

Expand Down

0 comments on commit 43fcaaa

Please sign in to comment.