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

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

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

Terminal.getHeight介绍

暂无

代码示例

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

public int getHeight() {
  if (isPlainTerminal()) {
    return PLAIN_TERMINAL_HEIGHT;
  }
  return terminal.getHeight();
}

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

public boolean isPlainTerminal() {
  // check if terminal width can be determined
  // e.g. IntelliJ IDEA terminal supports only a plain terminal
  return terminal.getWidth() == 0 && terminal.getHeight() == 0;
}

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

@Override
public int getHeight() {
  return terminal.getHeight();
}

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

@Override
public int getHeight() {
  return terminal.getHeight();
}

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

private void updateTerminalSize() {
 terminal.flush();
 height = terminal.getHeight();
}

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

channel.setPtyModes(modes);
channel.setPtyColumns(terminal.getWidth());
channel.setPtyLines(terminal.getHeight());
channel.setAgentForwarding(true);
channel.setEnv("TERM", terminal.getType());

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

channel.setPtyModes(modes);
channel.setPtyColumns(terminal.getWidth());
channel.setPtyLines(terminal.getHeight());
channel.setAgentForwarding(true);
channel.setEnv("TERM", terminal.getType());

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

channel.setPtyModes(modes);
channel.setPtyColumns(terminal.getWidth());
channel.setPtyLines(terminal.getHeight());
channel.setAgentForwarding(true);
channel.setEnv("TERM", terminal.getType());

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

channel.setPtyModes(modes);
channel.setPtyColumns(terminal.getWidth());
channel.setPtyLines(terminal.getHeight());
channel.setAgentForwarding(true);
channel.setEnv("TERM", terminal.getType());

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

session.put("#TERM", (Function) (s, arguments) -> terminal.getType());
session.put("#COLUMNS", (Function) (s, arguments) -> terminal.getWidth());
session.put("#LINES", (Function) (s, arguments) -> terminal.getHeight());
session.put("#PWD", (Function) (s, arguments) -> s.currentDir().toString());
if (!opt.isSet("nohistory")) {

代码示例来源:origin: julianhyde/sqlline

terminal = terminalBuilder.build();
getOpts().set(BuiltInProperty.MAX_WIDTH, terminal.getWidth());
getOpts().set(BuiltInProperty.MAX_HEIGHT, terminal.getHeight());

代码示例来源:origin: sqlline/sqlline

terminal = terminalBuilder.build();
getOpts().set(BuiltInProperty.MAX_WIDTH, terminal.getWidth());
getOpts().set(BuiltInProperty.MAX_HEIGHT, terminal.getHeight());

相关文章