Skip to content

Commit

Permalink
Mouse is only supported with Jna on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 21, 2016
1 parent 75dab0a commit fecb812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public JnaWinSysTerminal(String name, boolean nativeSignals) throws IOException
public JnaWinSysTerminal(String name, boolean nativeSignals, SignalHandler signalHandler) throws IOException {
super(new WindowsAnsiOutputStream(new FileOutputStream(FileDescriptor.out), consoleOut),
name, nativeSignals, signalHandler);
strings.put(InfoCmp.Capability.key_mouse, "\\E[M");
}

protected int getConsoleOutputCP() {
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/jline/utils/InfoCmp.java
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,7 @@ public static void parseInfoCmp(
"\tsmul=\\E[4m,\n" +
"\tkdch1=\\E[3~, kich1=\\E[2~, kend=\\E[4~, knp=\\E[6~, kpp=\\E[5~,\n" +
"\tkf1=\\EOP, kf2=\\EOQ, kf3=\\EOR, kf4=\\EOS, kf5=\\E[15~, kf6=\\E[17~,\n" +
"\tkf7=\\E[18~, kf8=\\E[19~, kf9=\\E[20~, kf10=\\E[21~, kf11=\\E[23~, kf12=\\E[24~,\n" +
"\tkmous=\\E[M,";
"\tkf7=\\E[18~, kf8=\\E[19~, kf9=\\E[20~, kf10=\\E[21~, kf11=\\E[23~, kf12=\\E[24~,\n";

public static final String ANSI_CAPS =
"ansi|ansi/pc-term compatible with color,\n" +
Expand Down

0 comments on commit fecb812

Please sign in to comment.