Hacker News new | ask | show | jobs
by mise 5175 days ago
Does anyone have trouble with tmux displaying colours?

I tried a custom git log query that coloured the custom ordered responses. Rather than showing the text in colour, there were inline codes being displayed.

1 comments

Does it work ok without tmux? If not, does git print directly to the terminal, or does it pipe to another program (like a pager)? Most programs make an isatty check in this case, but if you force printing of escape codes and pipe the output to less for example, you'll see the codes in the output instead of their effects.
Actually, I think you're right, I probably was piping to less at the time (which tmux makes me do more of than usual).