Xterm configuration : how to copy/paste in the CLIPBOARD


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Xterm configuration : how to copy/paste in the CLIPBOARD
# 1  
Old 12-01-2010
Xterm configuration : how to copy/paste in the CLIPBOARD

Hi,
I can paste what is in the CLIPBOARD but I can't get xterm copy. and in fact I think I'm not able to select well with the cursor (I don't want to use the mouse)...
here is my ~/.Xresources file :
Code:
XTerm*highlightSelection:  true
XTerm*VT100.translations: #override \n\
      None    <Key>F7:       insert-selection(CLIPBOARD) \n\
      None    <Key>F8:       select-cursor-start() \n\
      None    <Key>F9:       select-cursor-end(CLIPBOARD)  \n\
      None    <Key>F10:      select-cursor-extend()

to apply modifications I type in a terminal : xrdb -merge ~/.Xresources
then I launch my xterm.
initially I have my xterm terminal :
Image

I press F7 (to show you what I have in my CLIPBOARD)
Image

I erease it then I type 1234 in my terminal to have some datas that I can try to copy. My goal is to copy "34"
Image

I press F8 to start the cursor selection ... but the cursor disapears ... I dunno why. I continue by pressing twice "left" key to move the invisible cursor.
Image

then I press F9 to end the cursor selection ... magically the cursor comes back visible
Image

I would suppose that in my clipboard that I have "34" so I paste it : F7 ... but nothing has changed in the clipboard
Image

I try with "extend": I press "right" key twice to move the cursor then I press F10.
Here, indeed I have highlighted what I want to copy
Image

I then press F9(to end the selection) and then I press F7 to paste my clipboard ... but nothing has changed
Image

I dunno what's wrong. May someone help me please?

Last edited by xib.be; 12-16-2010 at 06:11 PM..
# 2  
Old 12-02-2010
Google says use screen. I like the idea of using X Resources, but I find X rather too tricky to want to learn all its nooks and crannies.

How do I copy text from my xterm without a mouse? - Stack Overflow
# 3  
Old 12-06-2010
thank you DGPickett for the advice. But screen acts as vi. And I don't like the idea of having to switch between modes... I'm an emacs user Smilie
# 4  
Old 12-06-2010
Is $TERM vt100?
This User Gave Thanks to DGPickett For This Post:
# 5  
Old 12-16-2010
In fact to launch xterm as a vt100 I tried:
Code:
xterm -ti vt100

because for me the main option to emulate vt100 is "-ti"
and indeed in the new terminal created I had:
Code:
echo $TERM
xterm

BUT after searching I saw that there was an option to modificate the termName :
Code:
xterm -tn vt100

did the job
Code:
echo $TERM
vt100

but it is JUST the name if I understood correctly. It doesn't mean that I emulate vt100

anyway, -ti option and -tn option don't change anything.
I have exaclty the same trouble
Smilie

Last edited by xib.be; 12-17-2010 at 08:50 AM..
# 6  
Old 12-17-2010
I am just a persistent X duffer. I guess if I wanted a real deep trace of what was going on, I might truss/tusc/strace in great detail. Beyond that, there is downloading source and writing in some debugs. Maybe there are debug features in there you can turn on, so you can find out where it is stuck. It's an area where I use and do not want to know. I got close enough doing bx motif callbacks!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 : command to copy text to the clipboard.

I'm searching a command to copy text to the clipboard. xclip and xsel are commands which are available on several kind Linux and Unix OS, but is unfortenuately not available on solaris 10. REF : xpt.sourceforge.net/techdocs/nix/x/general/xwin12-Xclipboard/single/ clipboard of openSolaris is... (9 Replies)
Discussion started by: droopy4u
9 Replies

2. UNIX for Dummies Questions & Answers

How do I copy from windows clipboard into VI session?

trying to add my Google analytics code to every page on my site. I want to paste in into every file. I have it in Notepad++. If I open a file in VI, using Putty to connect is it easy to just paste into the VI session? (3 Replies)
Discussion started by: waynehazle
3 Replies

3. UNIX for Dummies Questions & Answers

Clipboard retrieve/paste command

I mainly use Max/MSP for my audio programming, but today I am working on a project that requires the use of shell. Is it possible to do this? Retrieve the contents of the clipboard. Send a keystroke to an application without loosing focus, for example, I want to initiate a paste command (with... (0 Replies)
Discussion started by: fhill2
0 Replies

4. UNIX for Dummies Questions & Answers

Copy entire contents of file to clipboard

Hi, I am trying to figure out how to copy the contents of a file to the clipboard, then paste into a command. i.e copy contents of file /path/filename.txt to <command> <paste text> Hope that makes sense. Basically tryting to copy the text for use in a command without having to open the... (8 Replies)
Discussion started by: JCA70
8 Replies

5. UNIX for Dummies Questions & Answers

Copy/Paste in Vi editor

Dear All, I have a file containing 12 lines. First 3 lines have 9 values and the remaining 9 lines with no values. I was trying to copy and paste these 9 values of the first 3 lines into last 9 lines simultaneously as A=1.491331, B=1.539000 ..... but I don't know how to cope with this... (9 Replies)
Discussion started by: sullah
9 Replies

6. Shell Programming and Scripting

sed copy paste

Hello, I have this path and file: /dir/dir/dir/dir/dir/dir/dir/dir/dir/THIS_SPOT/fle.txt I want to end up with: /dir/dir/dir/dir/dir/dir/dir/dir/dir/THIS_SPOT/fle.txtTHIS_SPOT Take the dir after the 10th slash, add a tab at the end and paste the dir it copied. Thanks (4 Replies)
Discussion started by: crowman
4 Replies

7. OS X (Apple)

paste in x11 xterm

Hi, I have MBP (Macbook Pro) and when launching X11 xterm I noticed the paste button is greyed out and so you can't paste. Is there any alternative to paste in X11? I know you could use three button mouse to highlight then paste by clicking wheel button. But is there keyboard combination that... (2 Replies)
Discussion started by: tau
2 Replies

8. UNIX for Dummies Questions & Answers

Copy text from a file from VI editor to Windows clipboard

Copy text from a file from VI editor to Windows clipboard, I mean copy entire file in vi editor to notepad. (13 Replies)
Discussion started by: zhshqzyc
13 Replies

9. Shell Programming and Scripting

Automatic Copy of File Contents to Clipboard

Could someone show me how to copy the contents of a file to the clipboard automatically without manually selecting its contents? I just want to press the "Paste Key" to show the results. I wish to use this in a ksh script. I'm using Solaris. Thanks! (5 Replies)
Discussion started by: ilak1008
5 Replies

10. Linux

xterm font colors - configuration question?

When I telnet (ssh) over to my Fedora system, I find the colors horrible. For instance, regular files are white text, which is fine, but directories show up as dark blue which is virtually invisible against the black background). Additionally, when using vi, I find the colors great doing perl... (3 Replies)
Discussion started by: ripley
3 Replies
Login or Register to Ask a Question