Click to See Complete Forum and Search --> : copy&paste txt from a terminal
Ludootje
11-08-2001, 03:50 PM
why can't i copy&paste txt from a terminal? what am i doing wrong? i select it and type ctrl+c/ctrl+v
i'm using konsole, though i tried it with others, but it's not working with any terminal
thedexman
11-08-2001, 04:00 PM
Try just highlighting the text, then pasting it by clicking the middle mouse button (or both at the same time if you only have 2 buttons)
EyesWideOpen
11-08-2001, 04:03 PM
Also, if you just highlight the text you want to copy and then press <SHIFT> + <INSERT> you can paste the text as well (in case your mouse buttons are giving you problems).
Ludootje
11-08-2001, 04:17 PM
nope, none is working :/
paulb
11-08-2001, 04:25 PM
There has to be functionality built into the terminal to allow you to do that. I have not found any terminals that you can do that in, but I have not looked. I use the > sign insted, and it may do what you want if you use it with a text editor that supports copy and paste.
For example:
dir *.png > dirpng.txt
Ludootje
11-08-2001, 04:36 PM
Originally posted by paulb:
<STRONG>There has to be functionality built into the terminal to allow you to do that. I have not found any terminals that you can do that in, but I have not looked. I use the > sign insted, and it may do what you want if you use it with a text editor that supports copy and paste.
For example:
dir *.png > dirpng.txt</STRONG>
?
what will that cmd do?
i think i'll go look for a mouse with 3 buttons and a wheel :rolleyes:
paulb
11-08-2001, 04:56 PM
Originally posted by Ludootje:
?
what will that cmd do?
i think i'll go look for a mouse with 3 buttons and a wheel :rolleyes:[/QB]
A three button mouse wont help help. :D
I know a better command but I cant find it.
paulb
11-08-2001, 04:58 PM
Linux for dummies:
"> is a redirection operator. It redirects the output of the command to a file..."
X_console
11-08-2001, 05:01 PM
To cut and paste, you need to make sure you've got gpm running. If you do, find the text you want to copy. Highlight it. Move your mouse cursor to the area you want to paste it. If you have a two button mouse, pressing both buttons will paste the highlighted text. If you have a two button mouse with a wheel, pressing the wheel will paste the highlighted text. If you have a three button mouse, pressing the middle mouse button will paste the highlighted text.
The command dir *.png > dirpng.txt will create a file containing a list of all .PNG files in the current directory.
Ludootje
11-09-2001, 12:44 PM
Originally posted by X_console:
<STRONG>To cut and paste, you need to make sure you've got gpm running. If you do, find the text you want to copy. Highlight it. Move your mouse cursor to the area you want to paste it. If you have a two button mouse, pressing both buttons will paste the highlighted text. If you have a two button mouse with a wheel, pressing the wheel will paste the highlighted text. If you have a three button mouse, pressing the middle mouse button will paste the highlighted text.</STRONG>
what's gpm? is it that clipboard thing? that isn't working :/
Originally posted by X_console:
<STRONG>The command dir *.png > dirpng.txt will create a file containing a list of all .PNG files in the current directory.</STRONG>
ok i hot it.. but eh, what's the use of that? i mean, for what purpose could someone use such a cmd?
paulb
11-09-2001, 01:03 PM
What do you need the text for?
I used to need a way to copy text also so that I could report errors to ppl here at linuxnewbie. I couldnt find anything to copy text, but I found out how to save the output of a command to a file, which was what I wanted:
[command] > [file name]
if you wanted it for copying, open up gnote or that KDE editor and select what you want and then copy. Hope this works.
Ludootje
11-09-2001, 01:09 PM
Originally posted by paulb:
<STRONG>What do you need the text for?
I used to need a way to copy text also so that I could report errors to ppl here at linuxnewbie. I couldnt find anything to copy text, but I found out how to save the output of a command to a file, which was what I wanted:
[command] > [file name]
if you wanted it for copying, open up gnote or that KDE editor and select what you want and then copy. Hope this works.</STRONG>
kedit can't copy txt from kedit to mozilla/netscape/whatever :)
i'd just want to be able to copy&paste from my terminal too 1.my terminal 2.other apps
bdg1983
11-09-2001, 02:10 PM
Highlight the text in the console and while it is still highlighted, move to the other application and either click the middle button or the right and leff button at the same time.
This ALWAYS works for ANY Linux distro.
X_console
11-09-2001, 02:36 PM
Do you get any output when you type ps -ea | grep gpm
Copy/Paste in UNIX is different. The moment you highlight the text, it's considered putting it into the clipboard right away.
Ludootje
11-11-2001, 03:45 PM
Originally posted by X_console:
<STRONG>Do you get any output when you type ps -ea | grep gpm
Copy/Paste in UNIX is different. The moment you highlight the text, it's considered putting it into the clipboard right away.</STRONG>
output: 1924 ? 00:00:00 gpm
Logon Name Gone: i've tried to paste the output from my terminal to my netscape like you say it should work, though it didn't work
J Lindroos
11-11-2001, 05:20 PM
Posted by Logon Name Gone:
This ALWAYS works for ANY Linux distro.
Maybe if the distro is intact. But if the program is corrupt or something gpm should be installed once again.
Ludootje
11-12-2001, 04:32 PM
But what is gpm?
bdg1983
11-12-2001, 04:55 PM
General purpose mouse (console mouse driver)
Ludootje
11-12-2001, 04:58 PM
Originally posted by Logon Name Gone:
<STRONG>General purpose mouse (console mouse driver)</STRONG>
tnx