“Couleurs de la console Java” Réponses codées

Couleur de texte de la console Java

// Define color constants
public static final String TEXT_RESET = "\u001B[0m";
public static final String TEXT_BLACK = "\u001B[30m";
public static final String TEXT_RED = "\u001B[31m";
public static final String TEXT_GREEN = "\u001B[32m";
public static final String TEXT_YELLOW = "\u001B[33m";
public static final String TEXT_BLUE = "\u001B[34m";
public static final String TEXT_PURPLE = "\u001B[35m";
public static final String TEXT_CYAN = "\u001B[36m";
public static final String TEXT_WHITE = "\u001B[37m";

// Implementation
System.out.println(TEXT_RED + "This text is red!" + TEXT_RESET);
Abbot Of Boolean Zen

Couleurs de la console Java

public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_BLACK = "\u001B[30m";
public static final String ANSI_RED = "\u001B[31m";
public static final String ANSI_GREEN = "\u001B[32m";
public static final String ANSI_YELLOW = "\u001B[33m";
public static final String ANSI_BLUE = "\u001B[34m";
public static final String ANSI_PURPLE = "\u001B[35m";
public static final String ANSI_CYAN = "\u001B[36m";
public static final String ANSI_WHITE = "\u001B[37m";
Dark Dugong

Couleurs de la console Java


public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_BLACK = "\u001B[30m";
public static final String ANSI_RED = "\u001B[31m";
public static final String ANSI_GREEN = "\u001B[32m";
public static final String ANSI_YELLOW = "\u001B[33m";
public static final String ANSI_BLUE = "\u001B[34m";
public static final String ANSI_PURPLE = "\u001B[35m";
public static final String ANSI_CYAN = "\u001B[36m";
public static final String ANSI_WHITE = "\u001B[37m";

Crazy Cottonmouth

Réponses similaires à “Couleurs de la console Java”

Questions similaires à “Couleurs de la console Java”

Plus de réponses similaires à “Couleurs de la console Java” dans Java

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code