public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] Output of ANSI escape sequences in ebuilds
@ 2019-12-14  7:16 99% Ulrich Mueller
  0 siblings, 0 replies; 1+ results
From: Ulrich Mueller @ 2019-12-14  7:16 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 638 bytes --]

Some ebuilds output SGR control sequences (formerly known as ANSI escape
sequences) to the terminal, i.e., they do things like:

  echo -e "\033[1m${@}\033[0m"
  einfo "Fetching \e[1m${r}\e[22m ..."
  ewarn "\033[1;33m**************************************************\033[00m"
  echo -ne "\a"   # (not actually an ANSI escape sequence)

These prevent NOCOLOR in make.conf or emerge --color=n from working
correctly, and I guess they are also problematic from an accessibility
point of view.

Are there any objections against removing these sequences from strings?
AFAICS, they are used by less than ten packages, and one eclass.

Ulrich

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-12-14  7:16 99% [gentoo-dev] Output of ANSI escape sequences in ebuilds Ulrich Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox