[Console] Ensure that ansi escape sequence are not writed in a non decor...

...ated output

Removed ansi escape sequence writings from QuestionHelper,
use a new method 'ansiEscapeSequence' instead, that writes only if output
is decorated

| Q                     | A |
| ------------- | --- |
| Bug fix?           | yes |
| New feature?   | no |
| BC breaks?      | maybe? |
| Deprecations? | no |
| Tests pass?     | yes |
| Fixed tickets    | n/a |
| License            | MIT |
| Doc PR            | |