pear/Console_Color2 — pull request #4 by jnovack (2012-09-29 19:57:46+00:00)
Title: BUG: Changing from Light color to Dark (same)color does not work.

**BUG**: When changing from a Light color to the Dark same color, the dark color is not applied correctly. In the example below, the brackets and slash should be dark, the numbers light, and the word "background" should be invisible. Additionally, once blink is set, it should be unset by the dark color so the underline does not blink.

```php
convert("%r[%R1%r/%R2%r] %1background%n %r%FBlink %r%UUnderline%n\n");
?>
```
Running this code yields the first bracket as dark, the number 1 as light, and the rest of the output is colored in light making the word "background" visible (as light red on red). Additionally, "underline" is both blinking and underlined.

See reference image: http://cl.ly/image/0J1L3a2U0j2c (it's tough to get blinking working in static image)

----------

**PROBLEM**: The colors were previously generating as ```\033[31;1m```. In order for the style to be properly applied, the code should be generated with the style before the color AND the dark color should be applied with style ```normal```.

----------

**FIX**: This pull request solves this issue in two parts.

* within ```color()```, the ```color``` is checked and applied after the ```style```.
* within ```convert()```, I forced the ```style``` to "normal" for the dark colors.