终端ANSI转义码不起作用

时间:2016-10-21 21:29:42

标签: shell terminal ansi arcanist

当我使用Arcanist并登陆某些代码时,我发现我的终端没有逃脱颜色。 public class LayoutInvokeChildAdded extends RelativeLayout { private OnDoneListener onDoneListener; public LayoutInvokeChildAdded(Context context) { super(context); } public LayoutInvokeChildAdded(Context context, AttributeSet attrs) { super(context, attrs); } public LayoutInvokeChildAdded(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } @Override public void onViewAdded(View child) { super.onViewAdded(child); if (onDoneListener != null) onDoneListener.onDone(childe); } public void setOnDoneListener(OnDoneListener onDoneListener) { this.onDoneListener = onDoneListener; } } 应该是<ESC>[1;32m9912da1<ESC>[m或类似的东西。这是我的终端的问题吗?我工作的其他人都没有发现这个问题。

32m9912da1

1 个答案:

答案 0 :(得分:0)

如果你在使用git bash的windows上使用arcanist,这应该解决它:

# 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/

相关问题