/** Returns the concatenated ANSI escape codes for turning all specified styles on. * @param styles the styles to generate ANSI escape codes for * @return the concatenated ANSI escape codes for turning all specified styles on */ public static String on(IStyle... styles) { StringBuilder result = new StringBuilder(); for (IStyle style : styles) { result.append(style.on()); } return result.toString(); } /** Returns the concatenated ANSI escape codes for turning all specified styles off.
/** Returns the concatenated ANSI escape codes for turning all specified styles off. * @param styles the styles to generate ANSI escape codes for * @return the concatenated ANSI escape codes for turning all specified styles off */ public static String off(IStyle... styles) { StringBuilder result = new StringBuilder(); for (IStyle style : styles) { result.append(style.off()); } return result.toString(); } /** Parses the specified style markup and returns the associated style.
/** Returns the concatenated ANSI escape codes for turning all specified styles on. * @param styles the styles to generate ANSI escape codes for * @return the concatenated ANSI escape codes for turning all specified styles on */ public static String on(IStyle... styles) { StringBuilder result = new StringBuilder(); for (IStyle style : styles) { result.append(style.on()); } return result.toString(); } /** Returns the concatenated ANSI escape codes for turning all specified styles off.
/** Returns the concatenated ANSI escape codes for turning all specified styles off. * @param styles the styles to generate ANSI escape codes for * @return the concatenated ANSI escape codes for turning all specified styles off */ public static String off(IStyle... styles) { StringBuilder result = new StringBuilder(); for (IStyle style : styles) { result.append(style.off()); } return result.toString(); } /** Parses the specified style markup and returns the associated style.