Home

terminal-colors.d(5) - fr

TERMINAL-COLORS.D(5)Formats de fichierTERMINAL-COLORS.D(5)

terminal-colors.d - configure output colorization for various utilities

/etc/terminal-colors.d/[[name][@term].][type]

Les fichiers de ce répertoire déterminent le comportement par défaut pour les utilitaires lors de la coloration de la sortie.

The name is a utility name. The name is optional and when none is specified then the file is used for all unspecified utilities.

The term is a terminal identifier (the TERM environment variable). The terminal identifier is optional and when none is specified then the file is used for all unspecified terminals.

The type is a file type. Supported file types are:

disable

Désactiver la coloration de sortie pour tous les utilitaires compatibles.

enable

Activer la coloration de sortie ; tous les fichiers correspondants à disable sont ignorés.

scheme

Specifies colors used for output. The file format may be specific to the utility, the default format is described below.

If there are more files that match for a utility, then the file with the more specific filename wins. For example, the filename "@xterm.scheme" has less priority than "[email protected]". The lowest priority are those files without a utility name and terminal identifier (e.g., "disable").

$XDG_CONFIG_HOME/terminal-colors.d ou $HOME/.config/terminal-colors.d spécifiques à l’utilisateur remplacent les réglages globaux.

Les déclarations suivantes sont reconnues.

nom couleur

The name is a logical name of color sequence (for example "error"). The names are specific to the utilities. For more details always see the COLORS section in the man page for the utility.

La couleur est un nom de couleur, suites de couleurs ANSI ou séquences d’échappement.

black, blink, blue, bold, brown, cyan, darkgray, gray, green, halfbright, lightblue, lightcyan, lightgray, lightgreen, lightmagenta, lightred, magenta, red, reset, reverse, and yellow.

The color sequences are composed of sequences of numbers separated by semicolons. The most common codes are:

0pour restaurer la couleur par défaut
1pour les couleurs plus claires
4pour le texte souligné
5pour le texte clignotant
30pour un premier plan noir
31pour un premier plan rouge
32pour un premier plan vert
33pour un premier plan jaune (ou marron)
34pour un premier plan bleu
35pour un premier plan violet
36pour un premier plan cyan
37pour un premier plan blanc (ou gris)
40pour un arrière-plan noir
41pour un arrière-plan rouge
42pour un arrière-plan vert
43pour un arrière-plan jaune (ou marron)
44pour un arrière-plan bleu
45pour un arrière-plan violet
46pour un arrière-plan cyan
47pour un arrière-plan blanc (ou gris)

To specify control or blank characters in the color sequences, C-style \-escaped notation can be used:

\asonnerie (ASCII 7)
\bespace arrière (ASCII 8)
\eéchappement (ASCII 27)
\fsaut de page (ASCII 12)
\nchangement de ligne (ASCII 10)
\rretour chariot (ASCII 13)
\ttabulation horizontale (ASCII 9)
\vtabulation verticale (ASCII 11)
\?suppression (ASCII 127)
\_espace
\\Backslash (\)
\^accent circonflexe (^)
\#croisillon (#)

Remarquez que des protections sont nécessaires pour entrer une espace, une contre-oblique, un accent circonflexe ou n’importe quel caractère de contrôle n’importe où dans la chaîne, ainsi que pour un croisillon si c’est le premier caractère.

Par exemple, pour utiliser un arrière-plan rouge pour les messages d’alerte dans la sortie de dmesg(1), utilisez :

echo 'alert 37;41' >> /etc/terminal-colors.d/dmesg.scheme

Lines where the first non-blank character is a # (hash) are ignored. Any other use of the hash character is not interpreted as introducing a comment.

TERMINAL_COLORS_DEBUG=all

Activer la sortie de débogage.

$XDG_CONFIG_HOME/terminal-colors.d

$HOME/.config/terminal-colors.d

/etc/terminal-colors.d

Désactiver la couleur pour tous les utilitaires compatibles :

touch /etc/terminal-colors.d/disable

Désactiver la couleur pour tous les utilitaires compatibles sur un terminal vt100 :

touch /etc/terminal-colors.d/@vt100.disable

Disable colors for all compatible utils except dmesg(1):

touch /etc/terminal-colors.d/disable

touch /etc/terminal-colors.d/dmesg.enable

The terminal-colors.d functionality is currently supported by all util-linux utilities which provides colorized output. For more details always see the COLORS section in the man page for the utility.

Pour envoyer un rapport de bogue, utilisez le système de gestion des problèmes à l'adresse <https://github.com/util-linux/util-linux/issues>.

terminal-colors.d is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.

La traduction française de cette page de manuel a été créée par Christophe Blaess <[email protected]>, Michel Quercia <quercia AT cal DOT enst DOT fr>, Thierry Vignaud <[email protected]>, Frédéric Delanoy <[email protected]>, Thierry Vignaud <[email protected]>, Christophe Sauthier <[email protected]>, Sébastien Blanchet, Jérôme Perzyna <[email protected]>, Aymeric Nys <aymeric AT nnx POINT com>, Alain Portal <[email protected]>, Thomas Huriaux <[email protected]>, Yves Rütschlé <[email protected]>, Jean-Luc Coulon (f5ibh) <[email protected]>, Julien Cristau <[email protected]>, Philippe Piette <[email protected]>, Jean-Baka Domelevo-Entfellner <[email protected]>, Nicolas Haller <[email protected]>, Sylvain Archenault <[email protected]>, Valéry Perrin <[email protected]>, Jade Alglave <[email protected]>, Nicolas François <[email protected]>, Alexandre Kuoch <[email protected]>, Lyes Zemmouche <[email protected]>, Florentin Duneau <[email protected]>, Alexandre Normand <[email protected]> et David Prévot <[email protected]>

Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE.

Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à [email protected].

11 mai 2022util-linux 2.38.1