minor #20885 [Console] Option to disable stty (johmue)
This PR was squashed before being merged into the 3.3-dev branch (closes #20885).
Discussion
----------
[Console] Option to disable stty
| Q | A
| ------------- | ---
| Branch? |
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? |
| Fixed tickets |
| License | MIT
| Doc PR | reference to the documentation PR, if any
Shall fix problems in Windows based environments if e.g. git is installed and stty is therefore found but writes only cryptic rubbish into the cmd. In the case of console questions it is also possible that input can't be read properly by console component.
Commits
-------
a189a6c52e
[Console] Option to disable stty
This commit is contained in:
commit
4599afef86
@ -116,6 +116,14 @@ class QuestionHelper extends Helper
|
|||||||
return 'question';
|
return 'question';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevents usage of stty.
|
||||||
|
*/
|
||||||
|
public static function disableStty()
|
||||||
|
{
|
||||||
|
self::$stty = false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Asks the question to the user.
|
* Asks the question to the user.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user