SCIENTIFIC-LINUX-USERS Archives

June 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Sun, 22 Jun 2014 20:45:13 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (66 lines)
On 06/22/2014 03:17 AM, Oleg Sadov wrote:
> Look at man xterm -- for example, by this way:
>
> xterm -xrm '*VT100*translations: #override \n Shift Ctrl <Key>C:
> select-end(CLIPBOARD, CUT_BUFFER0) \n Shift Ctrl <Key>V:
> insert-selection(PRIMARY, CUT_BUFFER0)'
>
> Shift Ctrl <Key>C actually is not need -- mouse selection placed to
> clipboard atomatcally. Cutting by <shift><Ctrl><X> seems irrealizable
> -- we don't have direct access to terminal buffer and you need realize
> complex text editors logic for such things.  Most simple way for
> realizing of such functionality -- emacs shell mode with customized
> keys binding.
>
> --Oleg
>
> On Sun, Jun 22, 2014 at 8:07 AM, ToddAndMargo <[log in to unmask]> wrote:
>> On 06/21/2014 01:28 PM, Tom H wrote:
>>>
>>> On Fri, Jun 20, 2014 at 8:30 PM, ToddAndMargo <[log in to unmask]>
>>> wrote:
>>>>
>>>>
>>>> Anyone know if there is a way to get copy <shift><Ctrl><C>,
>>>> past <shift><Ctrl><V>, and cut <shift><Ctrl><X> keystrokes
>>>> into an xterm?
>>>
>>>
>>> Define "copy-selection(CLIPBOARD)" and "insert-selection(CLIPBOARD)"
>>> in "XTerm*VT100.translations" in ".Xresources".
>>>
>>
>> Hi Tom,
>>
>>     Is there a way to put it into the command line that calls
>> the xterm?
>>
>> Many thanks,
>> -T
>

Hi Oleg,

I can paste <ctrl><shift><V> from Leaf Pad (a text editor) to
xterm.  But it will only paste what is highlighted in Leaf Pad,
not what I copied into the clipboard.

I can not highlight in xterm, press <ctrl><shift><C>, then
paste into Lead Pad.

What am I doing wrong?

Does this mean anything:
       $ echo $TERM
       xterm
It is not VT100

Many thanks,
-T

xterm -fn 8x16 -fg darkgreen -bg white -bdc -cc 
"33:48,37:48,45-47:48,38:48"  -geometry 140x25 -xrm 
'*VT100*translations: #override \n Shift Ctrl 
<Key>C:select-end(CLIPBOARD, CUT_BUFFER0) \n Shift Ctrl 
<Key>V:insert-selection(PRIMARY, CUT_BUFFER0)'

ATOM RSS1 RSS2