/** * Creates new instanceof Ansi. * * @param attr attribute of text, null means don't change * @param foreground foreground color of text, null means don't change * @param background background color of text, null means don't change */ public Ansi(final Attribute attr, final Color foreground, final Color background) { init(attr, AnsiColor.forStandardColor(foreground), AnsiColor.forStandardColor(background)); }
/** * Prints colorized {@code message} to {@link System#err} followed by newline * * @param message message to be colorized */ public void errLine(final String message) { print(System.err, message); }
/** * Creates new instanceof Ansi. * * @param attr attribute of text, null means don't change * @param foreground foreground color of text, null means don't change * @param background background color of text, null means don't change */ public Ansi(final Attribute attr, final AnsiColor foreground, final AnsiColor background) { init(attr, foreground, background); }
public static String combine(final String path1, final String path2) { if (path1 == null) { return path2 != null ? path2 : StringUtilities.EMPTY; } if (path2 == null) { return path1; } checkInvalidPathChars(path1); checkInvalidPathChars(path2); return combineUnsafe(path1, path2); }
/** * Prints formatted and colorized {@code format} to {@link System#out} * * @param format A format string whose output to be colorized * @param args Arguments referenced by the format specifiers in the format */ public void outFormat(final String format, final Object... args) { format(System.out, format, args); }
/** * Prints colorized {@code message} to {@link System#out} followed by newline * * @param message message to be colorized */ public void outLine(final String message) { println(System.out, message); }
/** * Creates new instanceof Ansi. * * @param attr attribute of text, null means don't change * @param foreground foreground color of text, null means don't change * @param background background color of text, null means don't change */ public Ansi(final Attribute attr, final Color foreground, final Color background) { init(attr, AnsiColor.forStandardColor(foreground), AnsiColor.forStandardColor(background)); }
public static String combine(final String path1, final String path2) { if (path1 == null) { return path2 != null ? path2 : StringUtilities.EMPTY; } if (path2 == null) { return path1; } checkInvalidPathChars(path1); checkInvalidPathChars(path2); return combineUnsafe(path1, path2); }
/** * Prints colorized {@code message} to {@link System#out} * * @param message message to be colorized */ public void out(final String message) { print(System.out, message); }
/** * Creates new instanceof Ansi. * * @param attr attribute of text, null means don't change * @param foreground foreground color of text, null means don't change * @param background background color of text, null means don't change */ public Ansi(final Attribute attr, final AnsiColor foreground, final AnsiColor background) { init(attr, foreground, background); }
/** * Prints formatted and colorized {@code format} to {@link System#err} * * @param format A format string whose output to be colorized * @param args Arguments referenced by the format specifiers in the format */ public void errFormat(final String format, final Object... args) { format(System.err, format, args); } }
/** * Prints colorized {@code message} to {@link System#out} followed by newline * * @param message message to be colorized */ public void outLine(final String message) { println(System.out, message); }
/** * Creates new instanceof Ansi. * * @param attr attribute of text, null means don't change * @param foreground foreground color of text, null means don't change * @param background background color of text, null means don't change */ public Ansi(final Attribute attr, final Color foreground, final Color background) { init(attr, AnsiColor.forStandardColor(foreground), AnsiColor.forStandardColor(background)); }
/** * Prints colorized {@code message} to {@link System#err} * * @param message message to be colorized */ public void err(final String message) { print(System.err, message); }
/** * Creates new instanceof Ansi. * * @param attr attribute of text, null means don't change * @param foreground foreground color of text, null means don't change * @param background background color of text, null means don't change */ public Ansi(final Attribute attr, final AnsiColor foreground, final AnsiColor background) { init(attr, foreground, background); }
/** * Prints formatted and colorized {@code format} to {@link System#err} * * @param format A format string whose output to be colorized * @param args Arguments referenced by the format specifiers in the format */ public void errFormat(final String format, final Object... args) { format(System.err, format, args); } }
/** * Prints colorized {@code message} to {@link System#err} * * @param message message to be colorized */ public void err(final String message) { print(System.err, message); }
/** * Prints colorized {@code message} to {@link System#err} followed by newline * * @param message message to be colorized */ public void errLine(final String message) { print(System.err, message); }
/** * Prints colorized {@code message} to {@link System#err} followed by newline * * @param message message to be colorized */ public void errLine(final String message) { print(System.err, message); }