Skip to content

Instantly share code, notes, and snippets.

@lanior
Created November 20, 2011 10:42
Show Gist options
  • Save lanior/1380134 to your computer and use it in GitHub Desktop.
Save lanior/1380134 to your computer and use it in GitHub Desktop.
Patch GNOME vte3 to send ^W on C-Backspace
--- a/src/vte.c
+++ b/src/vte.c
@@ -5318,11 +5318,7 @@
suppress_meta_esc = FALSE;
break;
case VTE_ERASE_ASCII_DELETE:
- if (modifiers & GDK_CONTROL_MASK) {
- normal = g_strdup("\027");
- } else {
- normal = g_strdup("\177");
- }
+ normal = g_strdup("");
normal_length = 1;
suppress_meta_esc = FALSE;
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment