Skip to content

Instantly share code, notes, and snippets.

@amichelic
Created December 15, 2017 11:48
Show Gist options
  • Save amichelic/640bf7a20cc0f03b2fced342d32050de to your computer and use it in GitHub Desktop.
Save amichelic/640bf7a20cc0f03b2fced342d32050de to your computer and use it in GitHub Desktop.
This patch disables mouse reporting in xterm.
--- xterm-327.orig/charproc.c
+++ xterm-327/charproc.c
@@ -5260,6 +5260,7 @@ really_set_mousemode(XtermWidget xw,
Bool enabled,
XtermMouseModes mode)
{
+ enabled = 0;
TScreenOf(xw)->send_mouse_pos = enabled ? mode : MOUSE_OFF;
if (TScreenOf(xw)->send_mouse_pos != MOUSE_OFF)
xtermShowPointer(xw, True);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment