本文整理了Java中org.jline.terminal.Terminal.trackMouse()
方法的一些代码示例,展示了Terminal.trackMouse()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Terminal.trackMouse()
方法的具体详情如下:
包路径:org.jline.terminal.Terminal
类名称:Terminal
方法名:trackMouse
[英]Change the mouse tracking mouse. To start mouse tracking, this method must be called with a valid mouse tracking mode. Mouse events will be reported by writing the Capability#key_mouse to the input stream. When this character sequence is detected, the #readMouseEvent() method can be called to actually read the corresponding mouse event.
[中]更改鼠标跟踪鼠标。要启动鼠标跟踪,必须使用有效的鼠标跟踪模式调用此方法。鼠标事件将通过将功能#键_鼠标写入输入流来报告。当检测到这个字符序列时,可以调用#readMouseEvent()方法来实际读取相应的鼠标事件。
代码示例来源:origin: org.apache.karaf.shell/org.apache.karaf.shell.core
@Override
public boolean trackMouse(MouseTracking tracking) {
return terminal.trackMouse(tracking);
}
代码示例来源:origin: apache/karaf
@Override
public boolean trackMouse(MouseTracking tracking) {
return terminal.trackMouse(tracking);
}
代码示例来源:origin: com.github.fonimus/spring-boot-ssh-shell-starter
@Override
public boolean trackMouse(MouseTracking mouseTracking) {
return delegate().trackMouse(mouseTracking);
}
代码示例来源:origin: org.jline/jline-builtins
void mouseSupport() throws IOException {
mouseSupport = !mouseSupport;
setMessage("Mouse support " + (mouseSupport ? "enabled" : "disabled"));
terminal.trackMouse(mouseSupport ? Terminal.MouseTracking.Normal : Terminal.MouseTracking.Off);
}
代码示例来源:origin: org.jline/jline
void mouseSupport() throws IOException {
mouseSupport = !mouseSupport;
setMessage("Mouse support " + (mouseSupport ? "enabled" : "disabled"));
terminal.trackMouse(mouseSupport ? Terminal.MouseTracking.Normal : Terminal.MouseTracking.Off);
}
代码示例来源:origin: com.github.fonimus/ssh-shell-starter
@Override
public boolean trackMouse(MouseTracking mouseTracking) {
return delegate().trackMouse(mouseTracking);
}
代码示例来源:origin: org.jline/jline
terminal.puts(Capability.enter_ca_mode);
terminal.puts(Capability.keypad_xmit);
terminal.trackMouse(Terminal.MouseTracking.Any);
terminal.flush();
executor = Executors.newSingleThreadScheduledExecutor();
} finally {
executor.shutdown();
terminal.trackMouse(Terminal.MouseTracking.Off);
terminal.puts(Capability.keypad_local);
terminal.puts(Capability.exit_ca_mode);
代码示例来源:origin: org.jline/jline-builtins
terminal.puts(Capability.enter_ca_mode);
terminal.puts(Capability.keypad_xmit);
terminal.trackMouse(Terminal.MouseTracking.Any);
terminal.flush();
executor = Executors.newSingleThreadScheduledExecutor();
} finally {
executor.shutdown();
terminal.trackMouse(Terminal.MouseTracking.Off);
terminal.puts(Capability.keypad_local);
terminal.puts(Capability.exit_ca_mode);
代码示例来源:origin: org.jline/jline
protected void doCleanup(boolean nl) {
buf.cursor(buf.length());
post = null;
if (size.getColumns() > 0 || size.getRows() > 0) {
redisplay(false);
if (nl) {
println();
}
terminal.puts(Capability.keypad_local);
terminal.trackMouse(Terminal.MouseTracking.Off);
if (isSet(Option.BRACKETED_PASTE))
terminal.writer().write(BRACKETED_PASTE_OFF);
flush();
}
history.moveToEnd();
}
代码示例来源:origin: org.jline/jline
callWidget(FRESH_LINE);
if (isSet(Option.MOUSE))
terminal.trackMouse(Terminal.MouseTracking.Normal);
if (isSet(Option.BRACKETED_PASTE))
terminal.writer().write(BRACKETED_PASTE_ON);
代码示例来源:origin: org.jline/jline
terminal.puts(Capability.keypad_xmit);
if (mouseSupport) {
terminal.trackMouse(Terminal.MouseTracking.Normal);
terminal.trackMouse(Terminal.MouseTracking.Off);
代码示例来源:origin: org.jline/jline-builtins
terminal.puts(Capability.keypad_xmit);
if (mouseSupport) {
terminal.trackMouse(Terminal.MouseTracking.Normal);
terminal.trackMouse(Terminal.MouseTracking.Off);
内容来源于网络,如有侵权,请联系作者删除!