Re:Presenting the Eshell
by hammerandtongs on Monday June 17, 2019 @05:15PM
(#20207464)
https://github.com/atomontage/xterm-color
That looked like the way to do it but I haven't tried yet.
Re:Presenting the Eshell
by spellcard199 on Monday June 17, 2019 @06:02PM
(#20207816)
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!
The only thing that stops me from using it is that xterm-256color and ansi-color and all the articles on the web talking about colors ultimately say this - the terminal emulator that it ships with just cannot do better colors?
(Eg when you do a ‘cargo run’ for rust, the error colors aren’t even highlighted in eshell)