Skip to content
Permalink
Browse files

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
-------

a189a6c [Console] Option to disable stty
  • Loading branch information...
fabpot committed Mar 22, 2017
2 parents 343490c + a189a6c commit 4599afef861984a9681042e912a201660f60109e
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/Symfony/Component/Console/Helper/QuestionHelper.php
@@ -116,6 +116,14 @@ public function getName()
return 'question';
}
/**
* Prevents usage of stty.
*/
public static function disableStty()
{
self::$stty = false;
}
/**
* Asks the question to the user.
*

0 comments on commit 4599afe

Please sign in to comment.
You can’t perform that action at this time.