本文整理了Java中org.fusesource.jansi.Ansi.bgBright()
方法的一些代码示例,展示了Ansi.bgBright()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ansi.bgBright()
方法的具体详情如下:
包路径:org.fusesource.jansi.Ansi
类名称:Ansi
方法名:bgBright
暂无
代码示例来源:origin: org.fusesource.jansi/jansi
public Ansi bgBrightDefault() {
return this.bgBright(Color.DEFAULT);
}
代码示例来源:origin: org.fusesource.jansi/jansi
public Ansi bgBrightRed() {
return this.bgBright(Color.RED);
}
代码示例来源:origin: org.fusesource.jansi/jansi
public Ansi bgBrightYellow() {
return this.bgBright(Color.YELLOW);
}
代码示例来源:origin: org.fusesource.jansi/jansi
public Ansi bgBrightGreen() {
return this.bgBright(Color.GREEN);
}
代码示例来源:origin: org.apache.maven.plugins/maven-surefire-report-plugin
Ansi apply( Ansi ansi )
{
if ( bold )
{
ansi.bold();
}
if ( color != null )
{
if ( bright )
{
ansi.fgBright( color );
}
else
{
ansi.fg( color );
}
}
if ( bgColor != null )
{
if ( bgBright )
{
ansi.bgBright( bgColor );
}
else
{
ansi.bg( bgColor );
}
}
return ansi;
}
代码示例来源:origin: org.apache.maven.shared/maven-shared-utils
Ansi apply( Ansi ansi )
{
if ( bold )
{
ansi.bold();
}
if ( color != null )
{
if ( bright )
{
ansi.fgBright( color );
}
else
{
ansi.fg( color );
}
}
if ( bgColor != null )
{
if ( bgBright )
{
ansi.bgBright( bgColor );
}
else
{
ansi.bg( bgColor );
}
}
return ansi;
}
代码示例来源:origin: usethesource/rascal
public Unparser(Writer stream, boolean highlight) {
fStream = stream;
fHighlight = highlight;
ansiOpen.put(NORMAL, Ansi.ansi().a(Attribute.ITALIC_OFF).a(Attribute.INTENSITY_BOLD_OFF)
.fg(Color.DEFAULT).fgBright(Color.DEFAULT));
ansiClose.put(NORMAL, Ansi.ansi().a(Attribute.ITALIC_OFF).a(Attribute.INTENSITY_BOLD_OFF)
.fg(Color.DEFAULT).fgBright(Color.DEFAULT));
ansiOpen.put(NONTERMINAL_LABEL, Ansi.ansi().a(Attribute.ITALIC).fg(Color.CYAN));
ansiClose.put(NONTERMINAL_LABEL, Ansi.ansi().a(Attribute.ITALIC_OFF).fg(Color.DEFAULT));
ansiOpen.put(META_KEYWORD, Ansi.ansi().fg(Color.MAGENTA));
ansiClose.put(META_KEYWORD, Ansi.ansi().fg(Color.DEFAULT));
ansiOpen.put(META_VARIABLE, Ansi.ansi().a(Attribute.ITALIC).fgBright(Color.GREEN));
ansiClose.put(META_VARIABLE, Ansi.ansi().a(Attribute.ITALIC_OFF).fgBright(Color.DEFAULT));
ansiOpen.put(META_AMBIGUITY, Ansi.ansi().a(Attribute.INTENSITY_BOLD).fgBright(Color.RED));
ansiClose.put(META_AMBIGUITY, Ansi.ansi().a(Attribute.INTENSITY_BOLD_OFF).fgBright(Color.DEFAULT));
ansiOpen.put(META_SKIPPED, Ansi.ansi().bgBright(Color.RED));
ansiClose.put(META_SKIPPED, Ansi.ansi().bgBright(Color.WHITE));
ansiOpen.put(COMMENT, Ansi.ansi().a(Attribute.ITALIC).fg(Color.GREEN));
ansiClose.put(COMMENT, Ansi.ansi().a(Attribute.ITALIC_OFF).fg(Color.DEFAULT));
}
内容来源于网络,如有侵权,请联系作者删除!