@Override public void writeAnsiTo(Appendable appendable) throws IOException { boolean appended = decoration(appendable, Decoration.bold.code, Decoration.bold_off.code, bold, false); appended |= decoration(appendable, Decoration.underline.code, Decoration.underline_off.code, underline, appended); appended |= decoration(appendable, Decoration.blink.code, Decoration.blink_off.code, blink, appended); appended |= color(appendable, foreground, '3', appended); appended |= color(appendable, background, '4', appended); if (appended) { appendable.append("m"); } } }
@Override public void writeAnsiTo(Appendable appendable) throws IOException { boolean appended = decoration(appendable, Decoration.bold.code, Decoration.bold_off.code, bold, false); appended |= decoration(appendable, Decoration.underline.code, Decoration.underline_off.code, underline, appended); appended |= decoration(appendable, Decoration.blink.code, Decoration.blink_off.code, blink, appended); appended |= color(appendable, foreground, '3', appended); appended |= color(appendable, background, '4', appended); if (appended) { appendable.append("m"); } } }
@Override public void writeAnsiTo(Appendable appendable) throws IOException { boolean appended = decoration(appendable, Decoration.bold.code, Decoration.bold_off.code, bold, false); appended |= decoration(appendable, Decoration.underline.code, Decoration.underline_off.code, underline, appended); appended |= decoration(appendable, Decoration.blink.code, Decoration.blink_off.code, blink, appended); appended |= color(appendable, foreground, '3', appended); appended |= color(appendable, background, '4', appended); if (appended) { appendable.append("m"); } } }
@Override public void writeAnsiTo(Appendable appendable) throws IOException { boolean appended = decoration(appendable, Decoration.bold.code, Decoration.bold_off.code, bold, false); appended |= decoration(appendable, Decoration.underline.code, Decoration.underline_off.code, underline, appended); appended |= decoration(appendable, Decoration.blink.code, Decoration.blink_off.code, blink, appended); appended |= color(appendable, foreground, '3', appended); appended |= color(appendable, background, '4', appended); if (appended) { appendable.append("m"); } } }