本文整理了Java中org.fusesource.jansi.Ansi.isEnabled()
方法的一些代码示例,展示了Ansi.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ansi.isEnabled()
方法的具体详情如下:
包路径:org.fusesource.jansi.Ansi
类名称:Ansi
方法名:isEnabled
暂无
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* @return Whether ansi is enabled
*/
public boolean isAnsiEnabled() {
return Ansi.isEnabled() && (terminal != null && terminal.isAnsiSupported()) && ansiEnabled;
}
代码示例来源:origin: org.apache.maven.plugins/maven-surefire-report-plugin
/**
* 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;
}
代码示例来源:origin: org.apache.maven.shared/maven-shared-utils
/**
* 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;
}
代码示例来源:origin: org.grails/grails-bootstrap
public boolean isAnsiEnabled() {
return Ansi.isEnabled() && (terminal != null && terminal.isAnsiSupported()) && ansiEnabled;
}
代码示例来源:origin: org.fusesource.jansi/jansi
public static Ansi ansi(StringBuilder builder) {
if (isEnabled()) {
return new Ansi(builder);
} else {
return new NoAnsi(builder);
}
}
代码示例来源:origin: org.fusesource.jansi/jansi
public static Ansi ansi(int size) {
if (isEnabled()) {
return new Ansi(size);
} else {
return new NoAnsi(size);
}
}
代码示例来源:origin: org.fusesource.jansi/jansi
public static Ansi ansi() {
if (isEnabled()) {
return new Ansi();
} else {
return new NoAnsi();
}
}
代码示例来源:origin: org.sonatype.gshell.commands/gshell-standard
println(io, "Interactive Script", branding.getInteractiveScriptName());
println(io, "History File", branding.getHistoryFileName());
println(io, "ANSI", Ansi.isEnabled());
break;
内容来源于网络,如有侵权,请联系作者删除!