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

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

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

Terminal.readMouseEvent介绍

[英]Read a MouseEvent from the terminal input stream. Such an event must have been detected by scanning the terminal's Capability#key_mousein the stream immediately before reading the event.
[中]从终端输入流中读取MouseEvent。在读取事件之前,必须通过扫描流中终端的功能#key_mouse来检测此类事件。

代码示例

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

@Override
public MouseEvent readMouseEvent() {
  return terminal.readMouseEvent(bindingReader::readCharacter);
}

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

@Override
public MouseEvent readMouseEvent(IntSupplier supplier) {
  return terminal.readMouseEvent(supplier);
}

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

@Override
public MouseEvent readMouseEvent() {
  return terminal.readMouseEvent();
}

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

@Override
public MouseEvent readMouseEvent() {
  return terminal.readMouseEvent();
}

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

@Override
public MouseEvent readMouseEvent(IntSupplier supplier) {
  return terminal.readMouseEvent(supplier);
}

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

@Override
public MouseEvent readMouseEvent(IntSupplier intSupplier) {
  return delegate().readMouseEvent(intSupplier);
}

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

@Override
public MouseEvent readMouseEvent(IntSupplier intSupplier) {
  return delegate().readMouseEvent(intSupplier);
}

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

@Override
public MouseEvent readMouseEvent() {
  return delegate().readMouseEvent();
}

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

@Override
public MouseEvent readMouseEvent() {
  return delegate().readMouseEvent();
}

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

MouseEvent event = terminal.readMouseEvent();

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

MouseEvent event = terminal.readMouseEvent();

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

void mouseEvent() {
  MouseEvent event = terminal.readMouseEvent();
  if (event.getModifiers().isEmpty() && event.getType() == MouseEvent.Type.Released
      && event.getButton() == MouseEvent.Button.Button1) {

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

void mouseEvent() {
  MouseEvent event = terminal.readMouseEvent();
  if (event.getModifiers().isEmpty() && event.getType() == MouseEvent.Type.Released
      && event.getButton() == MouseEvent.Button.Button1) {

相关文章