/** * @return Whether ansi is enabled */ public boolean isAnsiEnabled() { return Ansi.isEnabled() && (terminal != null && terminal.isAnsiSupported()) && ansiEnabled; }
/** * Is message color enabled: requires JAnsi available (through Maven) and the color has not been disabled. */ public static boolean isColorEnabled() { return JANSI ? Ansi.isEnabled() : false; }
/** * Is message color enabled: requires JAnsi available (through Maven) and the color has not been disabled. */ public static boolean isColorEnabled() { return JANSI ? Ansi.isEnabled() : false; }
public boolean isAnsiEnabled() { return Ansi.isEnabled() && (terminal != null && terminal.isAnsiSupported()) && ansiEnabled; }
public static Ansi ansi(StringBuilder builder) { if (isEnabled()) { return new Ansi(builder); } else { return new NoAnsi(builder); } }
public static Ansi ansi(int size) { if (isEnabled()) { return new Ansi(size); } else { return new NoAnsi(size); } }
public static Ansi ansi() { if (isEnabled()) { return new Ansi(); } else { return new NoAnsi(); } }
println(io, "Interactive Script", branding.getInteractiveScriptName()); println(io, "History File", branding.getHistoryFileName()); println(io, "ANSI", Ansi.isEnabled()); break;