[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xterm copy-n-paste and mouse selection in scroll back



Bill Moseley sez:
[...]
} I was just wondering if there was an xterm shortcut to "cut" to the
} CLIPBOARD in xterm or xterm clone.
[...]

You can put what you need in your .Xdefaults or .Xresources or whatever
it is that actually gets read. The excerpt below should be instructive,
though not suitable for just cutting and pasting. If you do, you won't
have the normal bindings that exist; use appres XTerm to determine your
current translations. If you don't understand X resources, now is a good
time to learn.

XTerm.vt100.translations:	#override \n\
        None<Key>SunCut:     select-set(CLIPBOARD) \n\
        None<Key>SunCopy:    select-set(CLIPBOARD) \n\
        None<Key>SunPaste:   insert-selection(CLIPBOARD) \n\
        None<Key>F11:    select-start() select-end(SECONDARY, CUT_BUFFER1) \n\
	None<Key>F12:    start-extend() select-end(SECONDARY, CUT_BUFFER1) \n\
        Shift<Key>F11:    select-start() select-end(SECONDARY, CUT_BUFFER2) \n\
	Shift<Key>F12:    start-extend() select-end(SECONDARY, CUT_BUFFER2) \n\
        Ctrl<Key>F11:    insert-selection(CUT_BUFFER1) \n\
        Ctrl<Key>F12:    insert-selection(CUT_BUFFER2) \n\
        Shift<Key>Help:    insert-selection(CUT_BUFFER0) \n\
        None<Key>Help:    insert-selection(CUT_BUFFER1) \n\
        Ctrl<Key>Help:    insert-selection(CUT_BUFFER2) \n


} Thanks, 
} Bill Moseley moseley@hank.org
--Greg



Reply to: