0

当我使用 Arcanist 并登陆一些代码时,我发现我的终端没有转义颜色。<ESC>[1;32m9912da1<ESC>[m应该32m9912da1或类似的东西。这是我的终端的问题吗?我工作的其他人没有发现这个问题。

Landing current branch 'some-branch'.
 TARGET  Landing onto "master", selected by following tracking branches upstream to the closest remote.
 REMOTE  Using remote "origin", selected by following tracking branches upstream to the closest remote.
 FETCH  Fetching origin/master...
These commits will be landed:

      - <ESC>[1;32m9912da1<ESC>[m some commit
      - <ESC>[1;32m687f799<ESC>[m some other commit
4

1 回答 1

0

如果您在带有 git bash 的 Windows 上使用奥术师,这应该可以解决它:

# add the following function to your .bash_profile
function arc(){
    command arc --ansi $@|cat
}

有关详细说明,请参阅:https ://thomas-barthelemy.github.io/2015/04/23/phabricator-arcanist-gitbash/

于 2016-11-10T09:46:48.290 回答