To copy text in a urxvt window, just highlight it with the mouse.
The default urxvt perl extentions automatically copies the text to both the primary buffer and the clipboard buffer.
So to paste in a Geany window (or leafpad or pale moon or firefox etc) just middle click or press ctrl+V or right click and select paste in the context menu.
If you are using a text terminal that is not urxvt, for example, maybe xfce's builtin terminal, it probably won't have perl extentions, so ctrl+V won't work, but middle clicking should work.
If you copy something to the primary buffer and close the window before pasting, the selection may disappear from the buffer. I usually copy text then paste it immediately.
If you have a clipboard manager, it can be useful to copy the correct text to the buffers, ready for pasting.
You can always paste into a text editor window and select the text and maybe press ctrl+C to copy the text to the clipboard, to paste later. In other words, you can use a text editor window as a crude clipboard manager.
I have a script to copy text from the primary buffer to the clipboard buffer. which executes when I press ctrl+alt+B
Code: Select all
#!/bin/ash
# copy primary to clipboard
# primary is highlighted text
# clipboard is ctrl+C, ctrl+V
xclip -selection primary -o | xclip -selection clipboard
By the way, I copied the text of my script by highlighting the text in urvxt with the mouse,
then I pasted the text in Firefox into this forum post, by pressing ctrl+V.