Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Output of ANSI escape sequences in ebuilds
Date: Sat, 14 Dec 2019 07:16:20
Message-Id: w6g8snfv0lo.fsf@kph.uni-mainz.de
1 Some ebuilds output SGR control sequences (formerly known as ANSI escape
2 sequences) to the terminal, i.e., they do things like:
3
4 echo -e "\033[1m${@}\033[0m"
5 einfo "Fetching \e[1m${r}\e[22m ..."
6 ewarn "\033[1;33m**************************************************\033[00m"
7 echo -ne "\a" # (not actually an ANSI escape sequence)
8
9 These prevent NOCOLOR in make.conf or emerge --color=n from working
10 correctly, and I guess they are also problematic from an accessibility
11 point of view.
12
13 Are there any objections against removing these sequences from strings?
14 AFAICS, they are used by less than ten packages, and one eclass.
15
16 Ulrich

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies