LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-17-2009, 11:19 AM   #1
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 938

Rep: Reputation: 140Reputation: 140
Terminal program with copy on select?


Hi

I use Gnome Terminal a lot, and I can't get used to how copy/paste works. At work, I use putty on Windows, so I forget to copy all the time - or I select and hit Control-C, which terminates the program. I know I can use Shift-Control-C but I can't get used to it.

Is there maybe some other terminal program I can use? Or some setting somewhere?
 
Old 11-17-2009, 11:45 AM   #2
konsultor
LQ Newbie
 
Registered: May 2009
Location: (No. VA) Washington, DC area
Distribution: openSUSE and SLES
Posts: 7

Rep: Reputation: 0
another terrminal

I use konsole primarily, in a KDE desktop. I find that Gnome apps work under KDE, so you might try the reverse.
 
Old 11-17-2009, 11:51 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by Guttorm View Post
Hi

I use Gnome Terminal a lot, and I can't get used to how copy/paste works. At work, I use putty on Windows, so I forget to copy all the time - or I select and hit Control-C, which terminates the program. I know I can use Shift-Control-C but I can't get used to it.

Is there maybe some other terminal program I can use? Or some setting somewhere?
Control+c has always been "break", even in the DOS days. I can't be 100% sure, but as far as I know, the windows terminal is not different in that regard.

In most terminals, you can just select the text with the mouse, then use middle click to paste in another window the selected piece of text. You don't even need to press a key combo to copy the text, just select and middle click to paste.

You never know when you are going to need control+c, overriding it, even if your terminal allows you to trap that key combo, might not be a good idea.
 
Old 11-17-2009, 11:54 AM   #4
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 938

Original Poster
Rep: Reputation: 140Reputation: 140
Installed it, but it doesn't do copy on select. How do you change it?
 
Old 11-17-2009, 11:58 AM   #5
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 938

Original Poster
Rep: Reputation: 140Reputation: 140
I guess you didn't understand what I meant by copy on select. When I select something, I want it on the clipboard. Why else did I select it?
 
Old 11-17-2009, 12:06 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by Guttorm View Post
I guess you didn't understand what I meant by copy on select. When I select something, I want it on the clipboard. Why else did I select it?
If that's aimed at me, that's exactly what my method does.

You select (click left and hold, more the mouse, release click), then paste (middle click). Just try. Maybe gnome-terminal is the only terminal that doesn't do this, 99.9% of them, if not 100%, do it right.
 
Old 11-17-2009, 12:26 PM   #7
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 938

Original Poster
Rep: Reputation: 140Reputation: 140
Not really, I just wish I had a terminal program that copies on select. I even tried installing putty for Linux, but it worked like the others. So maybe I need to get used to middle clicking in for example Firefox when I mean to paste from the terminal. Or maybe I need to find the right source file and see if I can change it?
 
Old 11-17-2009, 12:45 PM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I am having trouble understanding what exactly is what you want or need.

"Copy on select", to me, means "select something with the mouse and it's automatically on the clipboard". Well, that's exactly what happens when you select something in X... Maybe the thing you don't like is the way to paste? In that case, you will need to review the source for all the programs where you want to paste things.

The work of the terminal emulator ends when you release the left click after having selected the text. In that moment, the info in on the X cut buffer, the rest of the work is done by whatever application is requesting that info.
 
Old 11-17-2009, 12:50 PM   #9
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,421

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
AFAIK all of them have copy on select. Paste with middle-click.
 
Old 11-17-2009, 01:09 PM   #10
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 938

Original Poster
Rep: Reputation: 140Reputation: 140
Yes, the problem then is which clipboard?

If you select something in the terminal, you can paste it with a middle click. But that seems to be a different clipboard.

I will try to rephrase the question:

I am looking for a terminal program that copies the text when I select something, without having to right click and copy, or typing some key combinations. And then I should be able to paste the text into for example Firefox, using the menus or keys.
 
Old 11-17-2009, 01:13 PM   #11
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 938

Original Poster
Rep: Reputation: 140Reputation: 140
Quote:
The work of the terminal emulator ends when you release the left click after having selected the text. In that moment, the info in on the X cut buffer, the rest of the work is done by whatever application is requesting that info.
Hmm. Then the terminal knows about the selection, and can do the same as when you Shift-Control-C right after. I might be able to figure this out...
 
Old 11-17-2009, 01:28 PM   #12
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
The problem is that there are many cut buffers, 3 I think.

Some tools, like xsel, can operate on the three clipboards (xsel --help will show the relevant options).

I know of no way to unify the 3 cut buffers, there might be one, no idea. But, in this case, you could modify the source code for your terminal application so it will use one of the other two buffers instead of the primary one, or, you could modify it so it will output the selection to the three buffers. That should ensure that it would work on every application regardless of the buffer it uses.
 
Old 11-18-2009, 11:43 AM   #13
ruisselet
LQ Newbie
 
Registered: Nov 2009
Distribution: Debian, Ubuntu
Posts: 2

Rep: Reputation: 1
Parcellite

You can install parcellite. In its preferences, you can choose to "Use primary" (the selections made when selecting) and "Synchronize clipboards". After that, you can copy with selecting, and paste with Control-V (or vice-versa), exactly as you wanted, in any application.
 
Old 11-18-2009, 12:21 PM   #14
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.1, Debian Squeeze
Posts: 7,061
Blog Entries: 21

Rep: Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788
Muddy waters. Some relevant links
 
Old 11-19-2009, 11:01 AM   #15
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 938

Original Poster
Rep: Reputation: 140Reputation: 140
I installed Parcellite and it is a great program. In addition to synchronizing the clipboards it also shows history, so I can select things I had selected before. Now the different applications don't handle copy/paste differently anymore, and Gnome Terminal does copy on select for real
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there terminal program that supports copy&paste with keyboard (read for specifics) robsku Linux - Desktop 1 08-18-2009 03:11 AM
rsync syntax to skip directory, but copy select files.. tnicol Linux - Software 3 07-24-2007 06:40 AM
Copy select files with command line Storyman Linux - Newbie 5 01-23-2007 04:35 AM
Why I can't copy or select text from XCHM ? Bonch Debian 1 12-22-2004 05:38 AM
select, copy and paste lusko Slackware 2 11-12-2002 04:07 PM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration