SUMMARY: xview keybindings in xterm

From: Derrick J. Brashear (shadow@alycia.andrew.cmu.edu)
Date: Thu Mar 04 1993 - 08:28:16 CST


My original question involved how to use xview copy/paste in an xterm.
I run X11R5 and Xview 3 on a Sun 3.

I'm posting what I found here in case anyone else finds it useful.

I included these lines in my .Xresources:

--
XTerm*VT100.Translations:       #override \n\
        ~Shift ~Ctrl ~Meta <Btn1Down>:   select-start() \n\
        ~Shift ~Ctrl ~Meta <Btn1Motion>: select-extend() \n\
        ~Shift ~Ctrl ~Meta <Btn2Down>:   ignore() \n\
        ~Shift ~Ctrl ~Meta <Btn3Down>:   start-extend() \n\
        ~Shift ~Ctrl ~Meta <Btn3Motion>: select-extend() \n\
        <Key>L6:                         select-set(CLIPBOARD) \n\
        <Key>L8:                         insert-selection(CLIPBOARD) \n\
        ~Shift Ctrl ~Meta <Btn1Down>:    popup-menu(mainMenu) \n\
        ~Shift Ctrl ~Meta <Btn2Down>:    popup-menu(vtMenu) \n\
        ~Shift Ctrl ~Meta <Btn3Down>:    popup-menu(fontMenu) \n\
        <Key>L10:                        select-end(PRIMARY,CUT_BUFFER0) \n\
        ~Shift ~Ctrl ~Meta <Btn2Up>:     insert-selection(PRIMARY, CUT_BUFFER0) \n\
        <BtnDown>:                       bell(0)
--
Which does all of what a normal xterm does, except: 
a) copy and paste work with a selection
b) instead of automatically cutting a selection to the cut buffer, 
   the L10 cut key is used.

Thanks to: John Kohl <jtkohl@zk3.dec.com> Larry Virden <lvirden@cas.org> Rainer Sinkwitz <sinkwitz@ifi.unizh.ch> Maj. Brian Boyter <boyter@pentagon-gw.army.mil> Gary Ellison <gfe@cbfpa.att.com>

-D



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:33 CDT