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

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

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

Attributes.getOutputFlags介绍

暂无

代码示例

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

private Terminal buildTerminal (InputStream in, OutputStream out) throws IOException {
  TerminalBuilder builder = TerminalBuilder.builder();
  builder.streams(in,out).system(System.in == in);
  Terminal t = builder.build();
  Attributes attr = t.getAttributes();
  attr.getOutputFlags().addAll(
   EnumSet.of(Attributes.OutputFlag.ONLCR, Attributes.OutputFlag.OPOST)
  );
  t.setAttributes(attr);
  return t;
}

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

public void copy(Attributes attributes) {
  setControlFlags(attributes.getControlFlags());
  setInputFlags(attributes.getInputFlags());
  setLocalFlags(attributes.getLocalFlags());
  setOutputFlags(attributes.getOutputFlags());
  setControlChars(attributes.getControlChars());
}

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

addFlag(c_iflag, iflag, InputFlag.IMAXBEL, IMAXBEL);
EnumSet<OutputFlag> oflag = attr.getOutputFlags();
addFlag(c_oflag, oflag, OutputFlag.OPOST, OPOST);
addFlag(c_oflag, oflag, OutputFlag.ONLCR, ONLCR);

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

addFlag(c_iflag, iflag, InputFlag.IMAXBEL, IMAXBEL);
EnumSet<OutputFlag> oflag = attr.getOutputFlags();
addFlag(c_oflag, oflag, OutputFlag.OPOST, OPOST);
addFlag(c_oflag, oflag, OutputFlag.ONLCR, ONLCR);

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

EnumSet<Attributes.OutputFlag> oflag = attr.getOutputFlags();
addFlag(tio.c_oflag, oflag, Attributes.OutputFlag.OPOST, OPOST);
addFlag(tio.c_oflag, oflag, Attributes.OutputFlag.ONLCR, ONLCR);

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

addFlag(c_iflag, iflag, InputFlag.IUTF8, IUTF8);
EnumSet<OutputFlag> oflag = attr.getOutputFlags();
addFlag(c_oflag, oflag, OutputFlag.OPOST, OPOST);
addFlag(c_oflag, oflag, OutputFlag.ONLCR, ONLCR);

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

addFlag(c_iflag, iflag, InputFlag.IUTF8, IUTF8);
EnumSet<OutputFlag> oflag = attr.getOutputFlags();
addFlag(c_oflag, oflag, OutputFlag.OPOST, OPOST);
addFlag(c_oflag, oflag, OutputFlag.ONLCR, ONLCR);

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

addFlag(c_iflag, iflag, InputFlag.IUTF8, IUTF8);
EnumSet<OutputFlag> oflag = attr.getOutputFlags();
addFlag(c_oflag, oflag, OutputFlag.OPOST, OPOST);
addFlag(c_oflag, oflag, OutputFlag.ONLCR, ONLCR);

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

addFlag(c_iflag, iflag, InputFlag.IUTF8, IUTF8);
EnumSet<OutputFlag> oflag = attr.getOutputFlags();
addFlag(c_oflag, oflag, OutputFlag.OPOST, OPOST);
addFlag(c_oflag, oflag, OutputFlag.ONLCR, ONLCR);

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

addFlag(tio.c_iflag, iflag, Attributes.InputFlag.IUTF8, IUTF8);
EnumSet<Attributes.OutputFlag> oflag = attr.getOutputFlags();
addFlag(tio.c_oflag, oflag, Attributes.OutputFlag.OPOST, OPOST);
addFlag(tio.c_oflag, oflag, Attributes.OutputFlag.ONLCR, ONLCR);

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

addFlag(tio.c_iflag, iflag, Attributes.InputFlag.IUTF8, IUTF8);
EnumSet<Attributes.OutputFlag> oflag = attr.getOutputFlags();
addFlag(tio.c_oflag, oflag, Attributes.OutputFlag.OPOST, OPOST);
addFlag(tio.c_oflag, oflag, Attributes.OutputFlag.ONLCR, ONLCR);

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

addFlag(tio.c_iflag, iflag, Attributes.InputFlag.IUTF8, IUTF8);
EnumSet<Attributes.OutputFlag> oflag = attr.getOutputFlags();
addFlag(tio.c_oflag, oflag, Attributes.OutputFlag.OPOST, OPOST);
addFlag(tio.c_oflag, oflag, Attributes.OutputFlag.ONLCR, ONLCR);

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

addFlag(c_iflag.longValue(), iflag, InputFlag.IUTF8, IUTF8);
EnumSet<OutputFlag> oflag = attr.getOutputFlags();
addFlag(c_oflag.longValue(), oflag, OutputFlag.OPOST, OPOST);
addFlag(c_oflag.longValue(), oflag, OutputFlag.ONLCR, ONLCR);

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

addFlag(c_iflag.longValue(), iflag, InputFlag.IUTF8, IUTF8);
EnumSet<OutputFlag> oflag = attr.getOutputFlags();
addFlag(c_oflag.longValue(), oflag, OutputFlag.OPOST, OPOST);
addFlag(c_oflag.longValue(), oflag, OutputFlag.ONLCR, ONLCR);

相关文章