aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoni <toni@devlap.local>2014-10-14 16:21:49 +0200
committertoni <toni@devlap.local>2014-10-14 16:21:49 +0200
commit725c71037ba88bc785ae7b7538a61728efcd1f38 (patch)
tree2279723d6da29876ae25739e025ee138f1633fac
parent6143e0b310f2b7ec00fae78fd57134826339cbb0 (diff)
parentd0019d2bd0005d0cf50accda1f2197c85f8fc555 (diff)
Merge branch 'master' of https://github.com/freecoding/foo-scripts
-rw-r--r--patches/xterm_copynpaste_hack.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/xterm_copynpaste_hack.patch b/patches/xterm_copynpaste_hack.patch
new file mode 100644
index 0000000..b301142
--- /dev/null
+++ b/patches/xterm_copynpaste_hack.patch
@@ -0,0 +1,29 @@
+--- a/charproc.c
++++ b/charproc.c
+@@ -9049,6 +9049,8 @@
+ Shift <KeyPress> Next:scroll-forw(1,halfpage) \n\
+ Shift <KeyPress> Select:select-cursor-start() select-cursor-end(SELECT, CUT_BUFFER0) \n\
+ Shift <KeyPress> Insert:insert-selection(SELECT, CUT_BUFFER0) \n\
++ Shift <KeyPress> Select:select-cursor-start() select-cursor-end(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
++ Shift <KeyPress> Insert:insert-selection(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
+ "
+ },
+ #if OPT_MAXIMIZE
+@@ -9099,7 +9101,7 @@
+ ! @Num_Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
+ ~Ctrl ~Meta <Btn2Down>:ignore() \n\
+ Meta <Btn2Down>:clear-saved-lines() \n\
+- ~Ctrl ~Meta <Btn2Up>:insert-selection(SELECT, CUT_BUFFER0) \n\
++ ~Ctrl ~Meta <Btn2Up>:insert-selection(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
+ !Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
+ !Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
+ !Lock Ctrl @Num_Lock <Btn3Down>:popup-menu(fontMenu) \n\
+@@ -9128,7 +9130,7 @@
+ False,
+ "default",
+ "\
+- <BtnUp>:select-end(SELECT, CUT_BUFFER0) \n\
++ <BtnUp>:select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
+ <BtnDown>:ignore() \
+ "
+ }