Linux - SoftwareThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to use the general purpose mouse in a terminal
or console to copy and paste to a file?
Copy/paste with gpm seems only to work to paste in the terminal.
I would like to be able to copy terminal output, such as an error
message (one tha does not make it to any log), and paste it into
a file or some other permanent retention.
Yes, you can copy/paste into a fie using gpm. Highlight the text you want using the left mouse button and then open an editor and paste, using wither the middle button (or wheel) or both buttons (if it's a 2 button mouse) and save the file.
But you cal always redirect logs or the output of a program into a file using the ">"
Which editor? I tried Midnight Commander, but that only has copy and move commands
for the current file loaded into its editor. I also cannot use any of the editors
in KDE: seems these use their own separate clipboard and paste something other than
what gpm stored, which I guess is not surprising.
Again which editor: vi, joe, emacs?
How might I use ">" or "<" to redirect the right mouse button output in the console?
You can use vi (in edit mode if you want to paste), joe, nano (pico) etc.
If you want to redirect logs or the output of a program you can use ">" to put it in a file:
not sure what i would do is hold shift and left mouse button to highlight, then use nano -w /path/to/file once in the file (if it does not exist nano will create it) hit the middle mouse button to paste ctrl-x to save.
now if you use ctrl + alt F1/F2 etc.. to go to another console you will be reading from the same clipboard unless that console is running X then you will be reading from X/gnome/kde's clipboard etc.. also leaving any console will chop of anything on screen so you can no longer scroll up. but basicaly, if you want to copy and paste from a console not running X nano should work, it has no gui so X is not needed.
sorry if im talking about the wrong thing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.