Class Commands.Colors

java.lang.Object
org.jline.builtins.Commands.Colors
Enclosing class:
Commands

private static class Commands.Colors extends Object
  • Field Details

    • COLORS_24BIT

      private static final String COLORS_24BIT
      See Also:
    • COLORS_16

      private static final List<String> COLORS_16
    • name

      boolean name
    • rgb

      boolean rgb
    • terminal

      private final Terminal terminal
    • out

      private final PrintStream out
    • fixedBg

      private boolean fixedBg
    • fixedStyle

      private String fixedStyle
    • r

      int r
    • g

      int g
    • b

      int b
  • Constructor Details

  • Method Details

    • getAnsiStyle

      private String getAnsiStyle(String style)
    • printStyles

      public void printStyles()
    • getStyle

      private String getStyle(String color)
    • foreground

      private String foreground(int idx)
    • addPadding

      private String addPadding(int width, String field)
    • addLeftPadding

      private String addLeftPadding(int width, String field)
    • setFixedStyle

      private void setFixedStyle(String style)
    • retrieveColorNames

      private List<String> retrieveColorNames() throws IOException
      Throws:
      IOException
    • printColors

      public void printColors(boolean name, boolean rgb, boolean small, int columns, String findName, String style) throws IOException
      Throws:
      IOException
    • rgb

      private int[] rgb(long color)
    • hue2rgb

      private int[] hue2rgb(int degree)
    • rgb2hsl

      private int[] rgb2hsl(int r, int g, int b)
    • getStyleRGB

      String getStyleRGB(String s)
    • printColor

      public void printColor(String name, String style) throws IOException
      Throws:
      IOException