Supporting ANSI Colour Codes

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)?
2 Likes

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

core.pager=less -FRX
opkg update
opkg install less

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