Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.selesse.jxlint.report.color;

Yet another ansi color mapping.
 
 public enum Color {
     RESET("\u001B[0m"),
     BLACK("\u001B[30m"),
     RED("\u001B[31m"),
    GREEN("\u001B[32m"),
    YELLOW("\u001B[33m"),
    BLUE("\u001B[34m"),
    PURPLE("\u001B[35m"),
    CYAN("\u001B[36m"),
    WHITE("\u001B[37m");
    private String color;
    private Color(String s) {
        this. = s;
    }
    private String toAnsi() {
        return this.;
    }
    public String wrapAround(String s) {
        return this.toAnsi() + s + ..toAnsi();
    }
New to GrepCode? Check out our FAQ X