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

x33g5p2x  于2022-01-17 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(136)

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

Attributes.setLocalFlag介绍

暂无

代码示例

代码示例来源:origin: org.jline/jline

public Attributes getAttributes() {
  int mode = getConsoleMode();
  if ((mode & ENABLE_ECHO_INPUT) != 0) {
    attributes.setLocalFlag(Attributes.LocalFlag.ECHO, true);
  }
  if ((mode & ENABLE_LINE_INPUT) != 0) {
    attributes.setLocalFlag(Attributes.LocalFlag.ICANON, true);
  }
  return new Attributes(attributes);
}

代码示例来源:origin: org.jline/jline

public boolean echo(boolean echo) {
  Attributes attr = getAttributes();
  boolean prev = attr.getLocalFlag(LocalFlag.ECHO);
  if (prev != echo) {
    attr.setLocalFlag(LocalFlag.ECHO, echo);
    setAttributes(attr);
  }
  return prev;
}

代码示例来源:origin: com.github.fonimus/spring-boot-ssh-shell-starter

break;
case ECHO:
  attr.setLocalFlag(Attributes.LocalFlag.ECHO, e.getValue() != 0);
  break;
case ICANON:
  attr.setLocalFlag(Attributes.LocalFlag.ICANON, e.getValue() != 0);
  break;
case ISIG:
  attr.setLocalFlag(Attributes.LocalFlag.ISIG, e.getValue() != 0);
  break;
case ICRNL:

代码示例来源:origin: apache/karaf

break;
case ECHO:
  attributes.setLocalFlag(LocalFlag.ECHO, e.getValue() != 0);
  break;
case ICANON:
  attributes.setLocalFlag(LocalFlag.ICANON, e.getValue() != 0);
  break;
case ISIG:
  attributes.setLocalFlag(LocalFlag.ISIG, e.getValue() != 0);
  break;
case ICRNL:

代码示例来源:origin: org.apache.karaf.shell/org.apache.karaf.shell.ssh

break;
case ECHO:
  attributes.setLocalFlag(LocalFlag.ECHO, e.getValue() != 0);
  break;
case ICANON:
  attributes.setLocalFlag(LocalFlag.ICANON, e.getValue() != 0);
  break;
case ISIG:
  attributes.setLocalFlag(LocalFlag.ISIG, e.getValue() != 0);
  break;
case ICRNL:

代码示例来源:origin: org.jline/jline

Boolean value = doGetFlag(cfg, flag);
if (value != null) {
  attributes.setLocalFlag(flag, value);

代码示例来源:origin: org.jline/jline

break;
case ECHO:
  attr.setLocalFlag(LocalFlag.ECHO, e.getValue() != 0);
  break;
case ICANON:
  attr.setLocalFlag(LocalFlag.ICANON, e.getValue() != 0);
  break;
case ISIG:
  attr.setLocalFlag(LocalFlag.ISIG, e.getValue() != 0);
  break;
case ICRNL:

代码示例来源:origin: org.jline/jline-remote-ssh

break;
case ECHO:
  attr.setLocalFlag(LocalFlag.ECHO, e.getValue() != 0);
  break;
case ICANON:
  attr.setLocalFlag(LocalFlag.ICANON, e.getValue() != 0);
  break;
case ISIG:
  attr.setLocalFlag(LocalFlag.ISIG, e.getValue() != 0);
  break;
case ICRNL:

代码示例来源:origin: jpos/jPOS-EE

termAttrs.setLocalFlag(Attributes.LocalFlag.ECHO, false);
term.setAttributes(termAttrs);

代码示例来源:origin: org.jline/jline

attributes.setLocalFlag(Attributes.LocalFlag.ISIG, true);
attributes.setControlChar(Attributes.ControlChar.VINTR, ctrl('C'));
attributes.setControlChar(Attributes.ControlChar.VEOF,  ctrl('D'));

相关文章