archlinuxfr / yaourt

[unmaintained] A Pacman frontend with more features and AUR support
598 stars 98 forks source link

Yaourt does not honour the TERM environment variable #295

Open lokedhs opened 8 years ago

lokedhs commented 8 years ago

Yaourt seems to always attempt to use vt102 ("ANSI") escape codes for highlighting, even when the TERM variable is set to a different terminal type. This causes screen corruption on other types of terminal types.

In particular, it completely messes up the text when TERM is set to dumb, for example in Emacs terminal mode.

It's likely that Yaourt writes the escape codes directly without paying attention to TERM at all. The correct solution is to use the terminfo library.