Skip to content

Commit a6dfca0

Browse files
author
Amrouche Hamza
committed
bugfix: the terminal state was wrong and not reseted
1 parent 98ae3cd commit a6dfca0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Helper/QuestionHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ private function autocomplete(OutputInterface $output, Question $question, $inpu
254254

255255
// as opposed to fgets(), fread() returns an empty string when the stream content is empty, not false.
256256
if (false === $c || ('' === $ret && '' === $c && null === $question->getDefault())) {
257+
shell_exec(sprintf('stty %s', $sttyMode));
257258
throw new RuntimeException('Aborted.');
258259
} elseif ("\177" === $c) { // Backspace Character
259260
if (0 === $numMatches && 0 !== $i) {

0 commit comments

Comments
 (0)