From ad94f2089df088d521812d9eeed9297412711543 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Mon, 14 Oct 2019 14:08:43 -0600 Subject: [PATCH] dtterm: add scroll wheel support This patch was manually added via a diff supplied from a user on the CDE mailing list: Michele Ghisolfo --- cde/lib/DtTerm/Term/Term.c | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/cde/lib/DtTerm/Term/Term.c b/cde/lib/DtTerm/Term/Term.c index 22a12a6c..f6109712 100644 --- a/cde/lib/DtTerm/Term/Term.c +++ b/cde/lib/DtTerm/Term/Term.c @@ -232,42 +232,42 @@ static XmSyntheticResource GetResources[] = * Anyway, remove KP_Multiply entry from defaultTranslations[] */ static char defaultTranslations[] = "\ - osfCancel: process-cancel()\n\ - osfCopy: copy-clipboard()\n\ - osfCut: copy-clipboard()\n\ - osfPaste: paste-clipboard()\n\ - osfBeginLine: beginning-of-buffer()\n\ + :osfCancel: process-cancel()\n\ + :osfCopy: copy-clipboard()\n\ + :osfCut: copy-clipboard()\n\ + :osfPaste: paste-clipboard()\n\ + :osfBeginLine: beginning-of-buffer()\n\ Home: beginning-of-buffer()\n\ - osfEndLine: end-of-buffer()\n\ + :osfEndLine: end-of-buffer()\n\ End: end-of-buffer()\n\ ShiftosfUp: scroll(1,line)\n\ ShiftUp: scroll(1,line)\n\ ShiftosfDown: scroll(-1,line)\n\ ShiftDown: scroll(-1,line)\n\ - osfUp: move-cursor(up)\n\ + :osfUp: move-cursor(up)\n\ Up: move-cursor(up)\n\ - osfDown: move-cursor(down)\n\ + :osfDown: move-cursor(down)\n\ Down: move-cursor(down)\n\ - osfLeft: move-cursor(backward)\n\ + :osfLeft: move-cursor(backward)\n\ Left: move-cursor(backward)\n\ - osfRight: move-cursor(forward)\n\ + :osfRight: move-cursor(forward)\n\ Right: move-cursor(forward)\n\ Find: vt-edit-key(find)\n\ - osfInsert: vt-edit-key(insert)\n\ + :osfInsert: vt-edit-key(insert)\n\ Insert: vt-edit-key(insert)\n\ :osfDelete: vt-edit-key(delete)\n\ :Delete: vt-edit-key(delete)\n\ - osfSelect: vt-edit-key(select)\n\ + :osfSelect: vt-edit-key(select)\n\ Select: vt-edit-key(select)\n\ - ~ShiftosfPageUp: vt-edit-key(prior)\n\ + :~ShiftosfPageUp: vt-edit-key(prior)\n\ ~ShiftPrior: vt-edit-key(prior)\n\ - ~ShiftosfPageDown: vt-edit-key(next)\n\ + :~ShiftosfPageDown: vt-edit-key(next)\n\ ~ShiftNext: vt-edit-key(next)\n\ Help: vt-edit-key(help)\n\ Menu: vt-edit-key(do)\n\ - osfPageUp: scroll(-1,page)\n\ + :osfPageUp: scroll(-1,page)\n\ Prior: scroll(-1,page)\n\ - osfPageDown: scroll(1,page)\n\ + :osfPageDown: scroll(1,page)\n\ Next: scroll(1,page)\n\ Mod1Break: soft-reset()\n\ ShiftBreak: hard-reset()\n\ @@ -388,6 +388,12 @@ static char defaultTranslations[] = "\ ~Ctrl: extend-end()\n\ ~Shift: process-bdrag()\n\ ~Shift: copy-to()\n\ + ~Shift ~Ctrl : scroll(-1,line)\n\ + ~Shift ~Ctrl : scroll(1,line)\n\ + Shift ~Ctrl : scroll(-3,line)\n\ + Shift ~Ctrl : scroll(3,line)\n\ + Ctrl ~Shift : scroll(-1,page)\n\ + Ctrl ~Shift : scroll(1,page)\n\ : enter()\n\ : leave()\n\ : focus-in()\n\ -- 2.25.1