本文整理了Java中org.jline.terminal.Attributes.setLocalFlag()
方法的一些代码示例,展示了Attributes.setLocalFlag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.setLocalFlag()
方法的具体详情如下:
包路径:org.jline.terminal.Attributes
类名称: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'));
内容来源于网络,如有侵权,请联系作者删除!