Skip to content

Instantly share code, notes, and snippets.

@softminus
Created August 24, 2016 08:24
Show Gist options
  • Save softminus/a467a5f45ae7e1a173a16da41640778f to your computer and use it in GitHub Desktop.
Save softminus/a467a5f45ae7e1a173a16da41640778f to your computer and use it in GitHub Desktop.
Disable mouse reporting in urxvt properly
diff --git a/src/rxvt.h b/src/rxvt.h
index 5c7cf66..2751ba3 100644
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -646,7 +646,7 @@ enum {
#define PrivMode_ExtMouseRight (1UL<<24) // xterm pseudo-utf-8, but works in non-utf-8-locales
#define PrivMode_BlinkingCursor (1UL<<25)
-#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent)
+#define PrivMode_mouse_report 0 /* (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) */
#ifdef ALLOW_132_MODE
# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
@amichelic
Copy link

Fabulous!
Since xterm has the same problem, I created a patch for xterm as well: https://gist.github.com/amichelic/640bf7a20cc0f03b2fced342d32050de

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment