sensiolabs / ansi-to-html

An ANSI to HTML5 converter
MIT License
238 stars 31 forks source link

Small bug in choosing intense colors #22

Open fctr opened 4 years ago

fctr commented 4 years ago

Here's the fix:

        foreach ($options as $option) {
            if ($option >= 30 && $option < 38) {
                $fg = $option - 30;

            } elseif ($option >= 40 && $option < 48) {
                $bg = $option - 40;
            } elseif ($option >= 90 && $option < 98) { // This needs to be added
                $fg = $option - 80; // This needs to be added
            } elseif (39 == $option) {

... }