Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-31-2009, 08:32 PM
|
#1
|
|
Member
Registered: May 2004
Posts: 177
Rep:
|
Looking for light terminal that supports copy and paste to other applications
I am using debian base + fluxbox.
I used to use xterm, but it does not support copy & paste. So, I use xfce-terminal.
I want to know are there any light terminal that supports copy & paste to other applications.
xfce-terminal is not light enough.
|
|
|
|
05-31-2009, 09:29 PM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
Actually, it does support "copy-and-paste", it just does not support they key-bindings you are used to using.
Shift-Delete is used for cutting text, and Shift-Insert is used for pasting text.
If I right click on a link for something in Firefox (let's say, the latest ISO of my BSD or Linux distro of choice) and select "Copy Link Location..." I can easily pop over into an Xterm, type in "wget " and then press Shift-Insert and the URL I want to download fills in. 
|
|
|
|
06-01-2009, 07:44 AM
|
#3
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,358
|
Hi,
I like to to setup the 'gpm';
Quote:
excerpt from 'man gpm';
gpm - a cut and paste utility and mouse server for virtual consoles
SYNOPSIS
gpm [ options ]
DESCRIPTION
This package tries to be a useful mouse server for applications running on the Linux console. It is based on the "selection" package, and some of its code comes from selection itself. This package is intended as a replacement for "selection" as a cut-and-paste mechanism; it also provides additional facilities. The "selection" package offered the first cut-and-paste implementation for Linux using two mouse buttons, and the cut buffer is still called "selection buffer" or just "selection" throughout this document. The information below is extracted from the texinfo file, which is the preferred source of information.
The gpm executable is meant to act like a daemon (thus, gpmd would be a better name for it). This section is meant to describe the command-line options for gpm, while its internals are outlined in the next section.
Due to restrictions in the ioctl(TIOCLINUX) system call, gpm must be run by the superuser. The restrictions have been added in the last 1.1 kernels to fix a security hole related to selection and screen dumping.
The server can be configured to match the user's taste, and any application using the mouse will inherit the server's attitude. From release 1.02 up to 1.19.2 is was possible for any user logged on the system console to change the mouse feeling using the -q option. This is no longer possible for security reasons.
As of 0.97 the server program puts itself in the background. To kill gpm you can just reinvoke it with the -k cmdline switch, although killall gpm can be a better choice.
|
|
|
|
|
06-01-2009, 08:44 AM
|
#4
|
|
Member
Registered: Dec 2007
Posts: 88
Rep:
|
I have used mrxvt and its really lightweight, supports tabs and is completely configurable.
You can also try aterm.
|
|
|
|
06-01-2009, 07:26 PM
|
#5
|
|
Member
Registered: May 2004
Posts: 177
Original Poster
Rep:
|
mrxvt supported copy and paste?
Quote:
Originally Posted by rikxik
I have used mrxvt and its really lightweight, supports tabs and is completely configurable.
You can also try aterm.
|
|
|
|
|
06-01-2009, 08:15 PM
|
#6
|
|
Member
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961
Rep:
|
Why oh why aren't you using screen in whatever terminal you're using? I have to say, screen is the most useful tool in a terminal. It also supports copy and paste.
http://www.gnu.org/software/screen/
|
|
|
|
06-01-2009, 10:11 PM
|
#7
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
Should be able to copy text from xterm by highlighting it with the mouse.
then clicking the middle mouse button to paste it where you want..
|
|
|
|
06-01-2009, 11:10 PM
|
#8
|
|
Member
Registered: Dec 2007
Posts: 88
Rep:
|
Quote:
Originally Posted by bbmak
mrxvt supported copy and paste?
|
Yes it does. Highlighting will automatically copy, then you can right click (or Shift+Insert) to paste.
|
|
|
|
06-01-2009, 11:15 PM
|
#9
|
|
Member
Registered: Dec 2007
Posts: 88
Rep:
|
Quote:
Originally Posted by jamescondron
Why oh why aren't you using screen in whatever terminal you're using? I have to say, screen is the most useful tool in a terminal. It also supports copy and paste.
http://www.gnu.org/software/screen/
|
The OP requested for suggestions on lightweight terminal. If he is running commands from console, he can do cut/paste from console using gpm. If he needs a terminal running within X, then he FIRST needs a terminal before he can run screen
He just needs a lightweight terminal with cut/paste functionality (which IMHO almost every terminal does) - no mention of terminal multiplexer.
|
|
|
|
09-27-2009, 09:54 AM
|
#10
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,358
|
Quote:
Originally Posted by bbmak
mrxvt supported copy and paste?
|
Yo (yes and no). A simple question with a complicated answer because there are so many copy and paste methods available on *n*x and the standards, even when they are not ambiguous, are not tightly adhered to. Useful links: Wikipedia page (incomplete, has useful links), Freedesktop.org's X clipboard explanation.
Here is the "yo" in detail - Yes, in that it implements the X method of copying any selection to the X PRIMARY.
- No, in that the X method of using Shift+Del to cut the the selection to the X PRIMARY is used to set the window title to the selection. Makes sense -- terminal text cannot be cut.
- Yes, in that it implements the X methods to paste from the X PRIMARY by centre mouse button click and by Shift+Ins.
- No, in that it does not provide any reasonably direct method to copy a selection to the X CLIPBOARD. It does not have an Edit->Paste facility on the menus and the Shift+Ctrl+[CV] hotkeys implemented by some other terminal emulators are configured to paste the X PRIMARY and X CLIPBOARD.
Ctrl+C and Ctrl+V cannot be used by terminal emulators because so many programs that run in terminals depend on them.
There are tantalising references in the mrxvt documentation that suggest copy to clipboard is in development. From the man 0.5.4 page (dated January 10, 2006 so from a much earlier release): " Copy Copy selection into clipboard (not implemented)" and from the undated but probably later draft man page " CopySel: save terminal selection into clipboard".
The "Copy" action can be assigned to a hotkey ("macro" in mrxvt terminology) and produces no error at startup but when it run produces " Support for macro type 'Copy' not compiled". This was on an installation of mrxvt built using config with options --enable-everything --disable-debug.
Assigning "CopySel" to a macro results in this error at startup: " Action CopySel is not of known type.
This mrxvt limitation is inconvenient rather than a showstopper when working on one machine but it is a showstopper regards copy and paste between VirtualMachine host and guest (and probably using other virtualisation software).
There may be a workaround by configuring a macro to run a utility that transfers the contents of X PRIMARY to CLIPBOARD. I'll be investigating this (autocutsel, DDM, TomBoy, uclip, xclip, xclipboard, xfce4-clipman-plugin and xsel) and will update this thread with any useful findings. If anyone has comments on the suitability of those utilities (mustn't open a window or be "heavy") then please reply.
Last edited by catkin; 09-27-2009 at 10:00 AM.
Reason: Comprehensibility
|
|
|
|
09-27-2009, 03:37 PM
|
#11
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,358
|
Solution to provide clipboard copy and paste in mrxvt posted in this Blog entry.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:00 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|