How to copy, cut and paste in console? (Solved)
How to copy, cut and paste in console? (Solved)
I cannot seem to copy and paste to and from the console windosw and it is a real pain....
I use this all the time when I am documenting things for myself. Is there a version of the console window where we can do this please?
Even if the executable is a little larger, I think the benefits would be worth it - to me at least!
I use this all the time when I am documenting things for myself. Is there a version of the console window where we can do this please?
Even if the executable is a little larger, I think the benefits would be worth it - to me at least!
Last edited by ocpaul20 on Thu 09 Apr 2009, 00:07, edited 1 time in total.
-
- Posts: 68
- Joined: Sun 21 Dec 2008, 01:15
- Location: Ga, USA
not in my rxvt window in puppy 4.00
all Ctrl+C does is give me a new hash prompt and then if I go to geany and try CTRL+V or shift+Insert I dont get what I have 'copied'. Are you sure you it works in yours?
I seem to remember there are some different ctrl+ commands (like ctrl+U which wipes out and restarts the line you are on). Maybe there is a different command sequence for the console windows.
all Ctrl+C does is give me a new hash prompt and then if I go to geany and try CTRL+V or shift+Insert I dont get what I have 'copied'. Are you sure you it works in yours?
I seem to remember there are some different ctrl+ commands (like ctrl+U which wipes out and restarts the line you are on). Maybe there is a different command sequence for the console windows.
-
- Posts: 68
- Joined: Sun 21 Dec 2008, 01:15
- Location: Ga, USA
The commands I listed work inside RVXT in 4.2 but don't transfer out of console.
Which is odd as it works fine in other versions I use regularly. It works fine in the 2 series as I used it the other day to post debug messages on the forum.
I just tried it on my 4.12 Bare Bones laptop and it works on there just as the same as it works on the 2 series.
I just tried it on my 4.12 Retro full version and it doesn't work.
So........
Which is odd as it works fine in other versions I use regularly. It works fine in the 2 series as I used it the other day to post debug messages on the forum.
I just tried it on my 4.12 Bare Bones laptop and it works on there just as the same as it works on the 2 series.
I just tried it on my 4.12 Retro full version and it doesn't work.
So........
-
- Posts: 68
- Joined: Sun 21 Dec 2008, 01:15
- Location: Ga, USA
OK, I found a way around it. Although you can not directly copy & paste in some versions of puppy, I found this works:
Highlight (drag) the text like you normally would to c&p.
Hold Ctrl + C.
Open the Clipboard (Menu/Desktop/Xclipboard)
Paste with Shift + Insert.
Then from there you can paste into a txt editor, etc.
Kind of a PITA with the extra step, but it does indeed work.
I read a comment on the 4.2 repository ,regarding rxvt 2.7.10, that the paste function is broken.. That would lead me to assume that the reason some of my versions of puppy are working is because they are using earlier versions or a like reason. Maybe search the forum for an earlier version pet.
Regardless I just tried the "fix" above in every version of Puppy I have loaded and it works on all of them.
Highlight (drag) the text like you normally would to c&p.
Hold Ctrl + C.
Open the Clipboard (Menu/Desktop/Xclipboard)
Paste with Shift + Insert.
Then from there you can paste into a txt editor, etc.
Kind of a PITA with the extra step, but it does indeed work.
I read a comment on the 4.2 repository ,regarding rxvt 2.7.10, that the paste function is broken.. That would lead me to assume that the reason some of my versions of puppy are working is because they are using earlier versions or a like reason. Maybe search the forum for an earlier version pet.
Regardless I just tried the "fix" above in every version of Puppy I have loaded and it works on all of them.
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
You don't need to explicitly copy at all. Just highlight the text, and then without clicking anywhere, middle-click in the location you want the text pasted into. Clicking the scroll wheel (yes, it is clickable) counts as a middle-click. If you have no middle button and no scroll wheel, you should be able to enable middle-button-emulation (probably is already enabled) which lets you middle-click by clicking both the left and right buttons simultaneously.
If you intend to click somewhere inside the area where you selected the text before you paste, so that it becomes unselected, then depending on which program you're using and which clipboard managers you have running (if any), you may or may not "lose" what was held in the buffer when it isn't currently highlighted. In those cases, you may need to explicitly copy using ctrl-c or the right-click->copy option.
AFAIK, there is no way to explicitly copy in the RXVT terminal. Normally though you can paste in it with shift-insert if you don't like middle-clicking.
If you intend to click somewhere inside the area where you selected the text before you paste, so that it becomes unselected, then depending on which program you're using and which clipboard managers you have running (if any), you may or may not "lose" what was held in the buffer when it isn't currently highlighted. In those cases, you may need to explicitly copy using ctrl-c or the right-click->copy option.
AFAIK, there is no way to explicitly copy in the RXVT terminal. Normally though you can paste in it with shift-insert if you don't like middle-clicking.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
- Billwho?
- Posts: 559
- Joined: Tue 06 Dec 2005, 09:28
- Location: still "In The Dog House" East Coast Oz
Trialing 4.20
What I have been doing is to highlight what I want to copy in the console then right click in genie and choose paste from the drop down menu.
Linux = Learning through doing :shock: :? :D
The learning curve may be steep but there is a light at the end of the tunnel.
You just have to pass the occasional oncoming train to get there.
The learning curve may be steep but there is a light at the end of the tunnel.
You just have to pass the occasional oncoming train to get there.
- Gorilla no baka
- Posts: 234
- Joined: Sun 26 Oct 2008, 05:27
- Location: UK
- Contact:
L.o.locpaul20 wrote:Ok, thanks for the info. I tried the highlighting and middle click and it does work pasting into geany.
It would be nice if it worked the same as other copy and paste methods, but as long as I can do it, thats fine. I just have to think twice rather than automatically do Ctrl+C & Ctrl+V.
It took me a while untill i found this post...
bassically until today if i wanted to copy something from console the only thing i could come up with it was
.# cd .opera
# ls -a >opera.txt
because even tough the highlighting and middle click and it does work pasting into geany. it does not work if you want to paste in the forum`s edit/post box ...
[img]http://i44.tinypic.com/29zdifo.jpg[/img]
[b]
[color=red]I'M IN MY OWN WORLD[/color].[/b] [color=darkred]IT'S OK, THEY KNOW ME HERE..!!![/color]
[b]
[color=red]I'M IN MY OWN WORLD[/color].[/b] [color=darkred]IT'S OK, THEY KNOW ME HERE..!!![/color]
I use Puppy v. 4.1 and SeaMonkey 1.1.11 and can paste here that way. For example this: # ls -la (doesn't matter if in Menu-Setup-Mouse...-Choose type of mouse... I have "Middel button emulated on a 2-button mouse" on or off-I have a touchpad with only 2 button in my laptop-)Gorilla no baka wrote:.... even tough the highlighting and middle click and it does work pasting into geany. it does not work if you want to paste in the forum`s edit/post box .....
I know this is an old thread but lately these are the methods I have used in most linux systems... In 2017
Ctrl/Ins (Copies the highlighted text)
Shift/Ins (Will paste the highlighted text into a terminal)
Also you can highlight and drag the text into a terminal.
Also don't forget that middle button you may have by pressing the scroll button down will copy highlighted text and then pressing it again can paste it into a terminal.
In some browsers Right click for a pull down menu to copy then press on the middle button again to paste...
Hope this helps for anyone digging around old threads...
Ctrl/Ins (Copies the highlighted text)
Shift/Ins (Will paste the highlighted text into a terminal)
Also you can highlight and drag the text into a terminal.
Also don't forget that middle button you may have by pressing the scroll button down will copy highlighted text and then pressing it again can paste it into a terminal.
In some browsers Right click for a pull down menu to copy then press on the middle button again to paste...
Hope this helps for anyone digging around old threads...
No Matter Where Your At... There You Are...
- Mike Walsh
- Posts: 6351
- Joined: Sat 28 Jun 2014, 12:42
- Location: King's Lynn, UK.
Highlight the text in the terminal, and either middle-click to paste, or else use the app's rt-clk to 'paste'.
Works for me. You have to middle-click to paste into the terminal, since that's the only command Urxvt/Rxvt will, apparently, recognise. For copying out of the terminal, just highlight; if the app you wish to copy into has 'paste' in its context menu, it'll work. Middle-click will always work...
Mike.
Works for me. You have to middle-click to paste into the terminal, since that's the only command Urxvt/Rxvt will, apparently, recognise. For copying out of the terminal, just highlight; if the app you wish to copy into has 'paste' in its context menu, it'll work. Middle-click will always work...
Mike.
- Limbomusic
- Posts: 267
- Joined: Fri 15 Apr 2016, 14:07
- Location: Norway
- Contact:
and also
This also works:
In terminal - highlight text - CTRL+ALT + C to copy and then CTRL+ALT-+V to paste into terminal. If pasting into geany or something else - just CTRL-V
And vice versa - to copy from geany - ctrl-c and then ctrl-alt-v to paste into terminal
In terminal - highlight text - CTRL+ALT + C to copy and then CTRL+ALT-+V to paste into terminal. If pasting into geany or something else - just CTRL-V
And vice versa - to copy from geany - ctrl-c and then ctrl-alt-v to paste into terminal