You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Pepijn Van Eeckhoudt (JIRA)" <ji...@apache.org> on 2010/03/16 11:59:27 UTC

[jira] Updated: (BUILDR-208) ansi control characters are printed in windows

     [ https://issues.apache.org/jira/browse/BUILDR-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pepijn Van Eeckhoudt updated BUILDR-208:
----------------------------------------

    Attachment: highline.patch

This is caused by the init code for highline. The win32console gem is needed to handle ansi escape sequences on windows, but this gem is not explicitly required in the gem spec. The require of Win32/Console/ANSI is attempted in a begin/rescue block however if the load fails, the default use_color value from highline is used which is 'true'. This patch correctly sets use_color in all cases.

> ansi control characters are printed in windows
> ----------------------------------------------
>
>                 Key: BUILDR-208
>                 URL: https://issues.apache.org/jira/browse/BUILDR-208
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3.4
>            Reporter: Ittay Dror
>         Attachments: highline.patch
>
>
> if there are errors when running buildr in a windows cmd session they are printed with the ansi control characters that cmd doesn't interpret, resulting in something like:
> ←[31mundefined method...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.