You are not logged in.

#1 2007-08-30 17:49:34

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

[SOLVED] Copy & Paste from a shell-based text editor to Firefox

As my switch to a custom text-mode only DE progresses, I often have to manage larger text data and it's transfer from a simple text editor ( e.g. Vi or Nano) in the shell to a graphical app like Firefox. But how is it actually possible to make a 'Copy & Paste' of some config file opened with e.g. Nano to Firefox? (Beside Firefox all my apps are text-mode only, no GUI anymore)

Example:

I have a problem with my Archlinux installation, something goes wrong and I don't know how to fix that.
So I open Firefox, go to archlinux.org and open a thread about my problem. To help these guys to find out what my problem is, I want to add my rc.conf in my posting. But as I do NOT have any graphical text editor there is no 'Copy & Paste' possibility.

How would you handle this situation?

Any hints, tricks, solutions etc. are greatly appreciated.

Last edited by azerty (2007-08-30 18:25:07)


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#2 2007-08-30 18:13:02

awagner
Member
From: Mainz, Germany
Registered: 2007-08-24
Posts: 191

Re: [SOLVED] Copy & Paste from a shell-based text editor to Firefox

ehm. simply selecting text with your mouse and inserting with middle click (button3) doesn't work (I suppose you're using xterm or urxvt, which editor/pager)?
(On AUR you can find sselp which just echoes what's currently available via clipboard, in case that's helpful in diagnosing.)

Last edited by awagner (2007-08-30 18:24:08)

Offline

#3 2007-08-30 18:24:25

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: [SOLVED] Copy & Paste from a shell-based text editor to Firefox

Hey it's so funny, I had this question in my mind for about one month and I didn't find any solution.
But 10 min after opening a thread here I found the solution: gpm big_smile

After installing and configuring gpm text selection and copying is possible.

Even if you didn't had to help me much, big thanks.


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#4 2007-08-30 18:26:38

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] Copy & Paste from a shell-based text editor to Firefox

azerty wrote:

Hey it's so funny, I had this question in my mind for about one month and I didn't find any solution.
But 10 min after opening a thread here I found the solution: gpm big_smile

After installing and configuring gpm text selection and copying is possible.

Even if you didn't had to help me much, big thanks.

I don't remember how it is with gpm, but I just do like awagner said, using the normal X copy/paste system.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#5 2007-08-30 18:32:58

awagner
Member
From: Mainz, Germany
Registered: 2007-08-24
Posts: 191

Re: [SOLVED] Copy & Paste from a shell-based text editor to Firefox

I don't think gpm is necessary. While I have it installed, I'm not running the daemon. (keeping just it in case...) The only problem I ever! have is that some editors or pagers (I don't remember which) don't stop their clipboard feeding at the end of the line but append spaces to the width of the terminal which I then have to delete manually after inserting the whole stuff somewhere. Oh, and in vim I often undo, turn on paste mode and redo wink

Offline

Board footer

Powered by FluxBB