本文整理了Java中org.fusesource.jansi.Ansi.<init>()
方法的一些代码示例,展示了Ansi.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ansi.<init>()
方法的具体详情如下:
包路径:org.fusesource.jansi.Ansi
类名称:Ansi
方法名:<init>
暂无
代码示例来源:origin: org.locationtech.geogig/geogig-cli
public static Ansi newAnsi(boolean ansiSupported, StringBuilder sb) {
Ansi ansi = new Ansi(sb);
ansiSupported &= null != SYSTEM_CONSOLE;
if (ansiSupported) {
return ansi;
}
AnsiDecorator ansiDecorator = new AnsiDecorator(sb);
return ansiDecorator;
}
代码示例来源:origin: locationtech/geogig
public static Ansi newAnsi(boolean ansiSupported, StringBuilder sb) {
Ansi ansi = new Ansi(sb);
ansiSupported &= null != SYSTEM_CONSOLE;
if (ansiSupported) {
return ansi;
}
AnsiDecorator ansiDecorator = new AnsiDecorator(sb);
return ansiDecorator;
}
代码示例来源:origin: org.gradle/gradle-logging
@Override
public Ansi create() {
if (forceAnsi) {
return new Ansi();
} else {
return Ansi.ansi();
}
}
}
代码示例来源:origin: org.locationtech.geogig/geogig-cli-core
public static Ansi newAnsi(boolean ansiSupported, StringBuilder sb) {
Ansi ansi = new Ansi(sb);
ansiSupported &= null != SYSTEM_CONSOLE;
if (ansiSupported) {
return ansi;
}
AnsiDecorator ansiDecorator = new AnsiDecorator(sb);
return ansiDecorator;
}
代码示例来源: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() {
if (isEnabled()) {
return new Ansi();
} else {
return new NoAnsi();
}
}
代码示例来源:origin: org.fusesource.jansi/jansi
public static Ansi ansi(int size) {
if (isEnabled()) {
return new Ansi(size);
} else {
return new NoAnsi(size);
}
}
代码示例来源:origin: stackoverflow.com
Ansi ansi = new Ansi();
ansi.a(Ansi.Attribute.STRIKETHROUGH_ON);
ansi.a("Striked");
ansi.reset();
System.out.println(ansi);
代码示例来源:origin: org.jboss.forge/forge-shell
@Override
public void cursorLeft(final int x)
{
print(new Ansi().cursorLeft(x).toString());
}
代码示例来源:origin: org.jboss.forge/forge-shell
@Override
public void clearLine()
{
print(new Ansi().eraseLine(Ansi.Erase.ALL).toString());
}
代码示例来源:origin: org.jboss.forge/forge-shell
public String escapeCode(final int code, final String value)
{
return new Ansi().a(value).fg(Ansi.Color.BLUE).toString();
}
代码示例来源:origin: org.jboss.forge/forge-shell
@Override
public void clear()
{
print(new Ansi().cursor(0, 0).eraseScreen().toString());
}
代码示例来源:origin: org.seedstack.seed/seed-core
void print(PrintStream stream) {
Ansi subAnsi = new Ansi();
boolean someProperty = false;
List<ErrorCode> errorCodes = new ArrayList<>(Arrays.asList(errorCodeClass.getEnumConstants()));
Collections.sort(errorCodes, Comparator.comparing(Object::toString));
for (ErrorCode errorCode : errorCodes) {
String template = getTemplate(errorCode);
if (all || !missing && !Strings.isNullOrEmpty(template) || missing && Strings.isNullOrEmpty(template)) {
subAnsi
.a(INDENTATION)
.fgBright(Ansi.Color.BLUE)
.a(errorCode)
.reset()
.a("=")
.a(Optional.ofNullable(template).orElse(""))
.newline();
someProperty = true;
}
}
Ansi ansi = new Ansi();
if (someProperty) {
ansi.fgBright(Ansi.Color.YELLOW)
.a(getTitle(errorCodeClass))
.reset()
.newline()
.a(subAnsi.toString())
.newline();
}
stream.print(ansi.toString());
}
代码示例来源:origin: org.jboss.forge/forge-shell
+ topBottomIndicator + "] ";
String bottomLineReset = new Ansi().cursor(shell.getAbsoluteHeight(), 0).toString();
代码示例来源:origin: org.jboss.forge/forge-shell
Ansi ansi = new Ansi();
内容来源于网络,如有侵权,请联系作者删除!