ANSI color in git is not displayed correctly

前端 未结 8 1073
一向
一向 2020-12-12 18:00

Recently, I switched to SLES 11. I found a problem for git command. All the ANSI color could not be rendered. Instead, it shows the ANSI code like this:

*ESC

8条回答
  •  无人及你
    2020-12-12 18:21

    OK, I got it. This problem is to do with the variable LESS.

    following line resolve this problem:

    export LESS="-erX"
    

提交回复
热议问题