Interface ANSI

All Superinterfaces:
ijava2.tools.ANSI

public interface ANSI extends ijava2.tools.ANSI
Définition de l'ensemble des codes ANSI pour la coloration et le formatage du texte dans les terminaux compatibles ANSI. Les constantes préfxés par BG correspondent aux couleurs de fond (background).
  • Field Summary

    Fields inherited from interface ijava2.tools.ANSI

    BG_BLACK, BG_BLUE, BG_BRIGHT_BLACK, BG_BRIGHT_BLUE, BG_BRIGHT_CYAN, BG_BRIGHT_GREEN, BG_BRIGHT_MAGENTA, BG_BRIGHT_RED, BG_BRIGHT_WHITE, BG_BRIGHT_YELLOW, BG_CYAN, BG_GREEN, BG_MAGENTA, BG_RED, BG_WHITE, BG_YELLOW, BLACK, BLINK, BLUE, BOLD, BRIGHT_BLACK, BRIGHT_BLUE, BRIGHT_CYAN, BRIGHT_GREEN, BRIGHT_MAGENTA, BRIGHT_RED, BRIGHT_WHITE, BRIGHT_YELLOW, CYAN, DIM, GOLD, GREEN, ITALIC, LIME, MAGENTA, MAROON, NAVY, OLIVE, ORANGE, PINK, PURPLE, RED, RESET, REVERSE, RGB_CORAL, RGB_LAVENDER, RGB_MINT, RGB_PEACH, SILVER, STRIKETHROUGH, TURQUOISE, UNDERLINE, WHITE, YELLOW
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static String
    rgb(int red, int green, int blue, boolean foreground)
    Génère un code d'échappement ANSI pour la couleur indiquée en RGB.
  • Method Details

    • rgb

      static String rgb(int red, int green, int blue, boolean foreground)
      Génère un code d'échappement ANSI pour la couleur indiquée en RGB.
      Parameters:
      red - la composante rouge (0-255)
      green - la composante verte (0-255)
      blue - la composante bleue (0-255)
      foreground - true pour colorer le texte ou false pour le fond
      Returns:
      le code d'échappement ANSI correspondant