本文整理了Java中org.jline.terminal.Terminal.getBooleanCapability()
方法的一些代码示例,展示了Terminal.getBooleanCapability()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Terminal.getBooleanCapability()
方法的具体详情如下:
包路径:org.jline.terminal.Terminal
类名称:Terminal
方法名:getBooleanCapability
暂无
代码示例来源:origin: org.apache.karaf.shell/org.apache.karaf.shell.core
@Override
public boolean getBooleanCapability(Capability capability) {
return terminal.getBooleanCapability(capability);
}
代码示例来源:origin: apache/karaf
@Override
public boolean getBooleanCapability(Capability capability) {
return terminal.getBooleanCapability(capability);
}
代码示例来源:origin: com.github.fonimus/spring-boot-ssh-shell-starter
@Override
public boolean getBooleanCapability(InfoCmp.Capability capability) {
return delegate().getBooleanCapability(capability);
}
代码示例来源:origin: com.github.fonimus/ssh-shell-starter
@Override
public boolean getBooleanCapability(InfoCmp.Capability capability) {
return delegate().getBooleanCapability(capability);
}
代码示例来源:origin: org.jline/jline
public Display(Terminal terminal, boolean fullscreen) {
this.terminal = terminal;
this.fullScreen = fullscreen;
this.canScroll = can(Capability.insert_line, Capability.parm_insert_line)
&& can(Capability.delete_line, Capability.parm_delete_line);
this.wrapAtEol = terminal.getBooleanCapability(Capability.auto_right_margin);
this.delayedWrapAtEol = this.wrapAtEol
&& terminal.getBooleanCapability(Capability.eat_newline_glitch);
this.cursorDownIsNewLine = "\n".equals(Curses.tputs(terminal.getStringCapability(Capability.cursor_down)));
}
代码示例来源:origin: org.jline/jline
protected boolean freshLine() {
boolean wrapAtEol = terminal.getBooleanCapability(Capability.auto_right_margin);
boolean delayedWrapAtEol = wrapAtEol && terminal.getBooleanCapability(Capability.eat_newline_glitch);
AttributedStringBuilder sb = new AttributedStringBuilder();
sb.style(AttributedStyle.DEFAULT.foreground(AttributedStyle.BLACK + AttributedStyle.BRIGHT));
内容来源于网络,如有侵权,请联系作者删除!