Hacker News new | ask | show | jobs
by hammerandtongs 2564 days ago
https://github.com/atomontage/xterm-color

That looked like the way to do it but I haven't tried yet.

1 comments

I tried and it mostly works, but for rustc/cargo in particular you also have to set the $TERM environment variable to "xterm" [1].

[1] https://github.com/rust-lang/rust/issues/45728#issuecomment-...

Interestingly, I've gotten used to checking $TERM and making sure it's set due to entering Docker containers to poke around them: in a lot of images, it's unset, and you get really old-school terminal emulator behaviour without it!