Hacker News new | past | comments | ask | show | jobs | submit login

Can someone comment on how to get better colors on eshell?

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)




https://github.com/atomontage/xterm-color

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


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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: