bugfix: the terminal state was wrong and not reseted
This commit is contained in:
parent
d45ecefe0c
commit
f54389b95c
@ -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) {
|
||||
|
Reference in New Issue
Block a user