# Supporting ANSI Colour Codes

**URL:** <https://forum.openwrt.org/t/supporting-ansi-colour-codes/83814>\
**Category:** Installing and Using OpenWrt\
**Created:** [December 30, 2020, 12:52pm UTC](https://forum.openwrt.org/t/supporting-ansi-colour-codes/83814 "2020-12-30T12:52:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshaikh](https://forum.openwrt.org/letter_avatar/sshaikh/32/5_5575768a8748004e209b776fc1b2916d.png) [@sshaikh](https://forum.openwrt.org/u/sshaikh)\
**Post date:** [December 30, 2020, 12:52pm UTC](https://forum.openwrt.org/t/supporting-ansi-colour-codes/83814/1 "2020-12-30T12:52:50Z")

</div>

Although I see colours when using the terminal with things like `ll` and `fish`, `git diff` isn't able to parse the ANSI colour escape codes so we see lots of `^[[m`.

1. Why does colour work sometimes and not others?
2. Is there a fix for this (apart from disabling colour for git diff)?

---

<div class="post-metadata">

**Author:** ![mpa](https://forum.openwrt.org/letter_avatar/mpa/32/5_5575768a8748004e209b776fc1b2916d.png) [@mpa](https://forum.openwrt.org/u/mpa)\
**Post date:** [January 4, 2021, 11:30pm UTC](https://forum.openwrt.org/t/supporting-ansi-colour-codes/83814/2 "2021-01-04T23:30:41Z")

</div>

How is this problem related to OpenWrt?  
Perhaps you should set a git config option such as

```
core.pager=less -FRX

```

---

<div class="post-metadata">

**Author:** ![vgaetera](https://forum.openwrt.org/user_avatar/forum.openwrt.org/vgaetera/32/113586_2.png) [@vgaetera](https://forum.openwrt.org/u/vgaetera)\
**Post date:** [January 5, 2021, 12:19am UTC](https://forum.openwrt.org/t/supporting-ansi-colour-codes/83814/3 "2021-01-05T00:19:34Z")

</div>

```
opkg update
opkg install less

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [January 24, 2021, 3:20pm UTC](https://forum.openwrt.org/t/supporting-ansi-colour-codes/83814/4 "2021-01-24T15:20:10Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
