org.jline.terminal.Terminal.getBooleanCapability()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(191)

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

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));

相关文章