org.fusesource.jansi.Ansi.isEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中org.fusesource.jansi.Ansi.isEnabled()方法的一些代码示例,展示了Ansi.isEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ansi.isEnabled()方法的具体详情如下:
包路径:org.fusesource.jansi.Ansi
类名称:Ansi
方法名:isEnabled

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;

相关文章