bugfix: the terminal state was wrong and not reseted

This commit is contained in:
Amrouche Hamza 2019-04-06 12:03:31 +02:00
parent d45ecefe0c
commit f54389b95c
No known key found for this signature in database
GPG Key ID: 3B02ADABCFCB29E3
1 changed files with 1 additions and 0 deletions

View File

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