How to copy, cut and paste in console? (Solved)

Using applications, configuring, problems
Post Reply
Message
Author
ocpaul20
Posts: 260
Joined: Thu 31 Jan 2008, 08:00
Location: PRC

How to copy, cut and paste in console? (Solved)

#1 Post by ocpaul20 »

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!
Last edited by ocpaul20 on Thu 09 Apr 2009, 00:07, edited 1 time in total.

Libretto100ct
Posts: 68
Joined: Sun 21 Dec 2008, 01:15
Location: Ga, USA

#2 Post by Libretto100ct »

Highlight the text or code like you normally would.

You can copy holding down Ctrl + C.

To paste it's Shift + Insert .

Cut and paste all you want. :)

ocpaul20
Posts: 260
Joined: Thu 31 Jan 2008, 08:00
Location: PRC

#3 Post by ocpaul20 »

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.

Libretto100ct
Posts: 68
Joined: Sun 21 Dec 2008, 01:15
Location: Ga, USA

#4 Post by Libretto100ct »

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........ :?:

Libretto100ct
Posts: 68
Joined: Sun 21 Dec 2008, 01:15
Location: Ga, USA

#5 Post by Libretto100ct »

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.

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#6 Post by Pizzasgood »

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.
[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]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#7 Post by trio »

try Sakura console...search in this forum

User avatar
Billwho?
Posts: 559
Joined: Tue 06 Dec 2005, 09:28
Location: still "In The Dog House" East Coast Oz
Trialing 4.20

#8 Post by Billwho? »

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.

ocpaul20
Posts: 260
Joined: Thu 31 Jan 2008, 08:00
Location: PRC

#9 Post by ocpaul20 »

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.

User avatar
Gorilla no baka
Posts: 234
Joined: Sun 26 Oct 2008, 05:27
Location: UK
Contact:

#10 Post by Gorilla no baka »

ocpaul20 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.
L.o.l

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]

Bruce B

#11 Post by Bruce B »

Shift + Insert
Press mouse wheel
Ctrl + V

Different results and different results with different applications.

Ctrl + V might paste different text than Press mouse wheel in the same application.

X has different clipboards, Applications have their peculiarities.

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#12 Post by zandarian »

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 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-)

meddyuk
Posts: 6
Joined: Fri 04 Mar 2011, 19:40

#13 Post by meddyuk »

I've got Puppy 5.1 and i'm on the laptop with no middle click or scroll button. I can't right click copy/cut and i can't do CTRL C, as it just brings up a capital C and a chevron.

I'm able to do all this in other packages but not the console. Any ideas?

User avatar
zandoval
Posts: 33
Joined: Tue 10 May 2005, 15:41
Location: USA Bastrop Texas

#14 Post by zandoval »

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...
No Matter Where Your At... There You Are...

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#15 Post by Flash »

What I do is highlight the text I want to paste, then simultaneously click the left and right mouse buttons when the cursor is where I want the text to appear.

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#16 Post by smokey01 »

Most keyboards have two Ins keys. The Shift+Ins only works with one of them.

Well it does here anyway.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#17 Post by Mike Walsh »

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. :wink:

User avatar
Limbomusic
Posts: 267
Joined: Fri 15 Apr 2016, 14:07
Location: Norway
Contact:

and also

#18 Post by Limbomusic »

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 :-)

Post Reply