shell - Colors with git-bash on windows -


i didn't know post it. have installed git-bash , arcanist project (http://www.phabricator.com/docs/phabricator/article/arcanist_user_guide.html).

now when type "arc help" on command prompt following message :

bcohen@bcohen-l ~ $ arc ←[1mname←[m       ←[1marc←[m - arcanist, code review , revision management utility  ←[1msynopsis←[m       ←[1marc←[m ←[4mcommand←[m [←[4moptions←[m] [←[4margs←[m]       file provides detailed command reference.  ←[1mcommand reference←[m        ←[1malias←[m       ←[1malias←[m ←[4mcommand←[m       ←[1malias←[m ←[4mcommand←[m ←[4mtarget←[m -- [←[4moptions←[m]        ←[1mamend←[m [--revision ←[4mrevision_id←[m] [--show]        ←[1manoid←[m        ←[1mbackout←[m        ←[1mbookmark←[m [←[4moptions←[m]       ←[1mbookmark←[m ←[4mname←[m [←[4mstart←[m]        ←[1mbranch←[m [←[4moptions←[m]       ←[1mbranch←[m ←[4mname←[m [←[4mstart←[m]        ←[1mbrowse←[m [←[4moptions←[m] ←[4mpath←[m ...        ←[1mcall-conduit←[m ←[4mmethod←[m        ←[1mclose←[m ←[4mtask_id←[m [←[4moptions←[m]        ←[1mclose-revision←[m [←[4moptions←[m] ←[4mrevision←[m        ←[1mcommit←[m [--revision ←[4mrevision_id←[m] [--show]        ←[1mcover←[m [--rev ←[4mrevision←[m] [←[4mpath←[m ...]        ←[1mdiff←[m [←[4mpaths←[m] (svn)       ←[1mdiff←[m [←[4mcommit←[m] (git, hg) 

for having colors, must replace sed ← \033 following :

bcohen@bcohen-l ~ $ arc |sed "s/?/\033/m" name       arc - arcanist, code review , revision management utility  synopsis       arc command [options] [args]       file provides detailed command reference.  command reference        alias       alias command       alias command target -- [options]        amend [--revision revision_id] [--show]        anoid        backout        bookmark [options]       bookmark name [start]        branch [options]       branch name [start]        browse [options] path ...        call-conduit method        close task_id [options]        close-revision [options] revision        commit [--revision revision_id] [--show] 

do have idea ? maybe alias ? maybe changing encoding ?

just clue :

bcohen@bcohen-l ~ $ echo -e "\033[,4mtoto" toto 

this wode work whereas :

bcohen@bcohen-l ~ $ php -r 'echo "\033[1mtoto", php_eol;' ←[1mtoto 

doesn't work :(


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -