Jump to content

copy/paste within a terminal


Recommended Posts

When I use my middle button to copy text from a terminal, the copied text immediately goes to my terminal's standard input and get's executed. Anyone know how to prevent this?

 

E.g.

$ls -1

 

miniserv.error

miniserv.log

miniserv.pid

sessiondb.dir*

sessiondb.pag*

webmin.log

 

Use mouse to select and hit middle button to copy.

 

I get..

 

root /var/webmin $miniserv.error

bash: miniserv.error: command not found

root /var/webmin $miniserv.log

bash: miniserv.log: command not found

root /var/webmin $miniserv.pid

bash: miniserv.pid: command not found

root /var/webmin $sessiondb.dir*

bash: sessiondb.dir: command not found

root /var/webmin $sessiondb.pag*

bash: sessiondb.pag: command not found

root /var/webmin $webmin.log

bash: webmin.log: command not found

root /var/webmin $

 

Gotta be a better way :)

Link to comment
Share on other sites

copy and paste this;

 

ls -l /var/webmin | grep error* &&

ls -l /var/webmin | grep log* &&

ls -l /var/webmin | grep pid* &&

ls -l /var/webmin | grep dir* &&

ls -l /var/webmin | grep pag*

 

If you just want to see the one "miniserv.error ", put it instead of error*.

 

Also, according to the $, you're doing it as a user. $USERS can't even read that dir can they?...or have you set it so you can?

Link to comment
Share on other sites

You guys are missing what I'm saying which means I explained it goofy :roll:

 

I want to copy and paste to an editor but when I do the mouse select and middle button click, it copies it and immediately pastes it back to the terminal. I just want to copy it.

 

I just read I can do a shift-control-c or v to do this but would rather use my mouse.

Link to comment
Share on other sites

You guys are missing what I'm saying which means I explained it goofy  :roll: 

 

I want to copy and paste to an editor but when I do the mouse select and middle button click, it copies it and immediately pastes it back to the terminal. I just want to copy it.

 

I just read I can do a shift-control-c or v to do this but would rather use my mouse.

 

Are you saying that you highlight text in a console window by holding down the left mouse button then you let go of the left mouse button. Then you make your text doc window active and left click inside it to get an active cursor then press the middle mouse button to paste.

But somehow it pastes the text into the unfocussed console window instead?.

 

The procedure i outlined works for me in 9.1

eg..

[john@bob john]$ ls

2446661_200.mov   GNUstep/                      render/

autosave/         gui_messages.ini              rpms/

BCE4012IM.PDF     icon.xpm                      shared/

blackbox-menu     java/                         star_control/

bombsquad.jpg     kazaa*                        temp/

bp26.avi          klackon_anim.mov              Testing-Guide.pdf

civgame.log       linuxq3apoint-1.32b.x86.run*  themes/

compssUsers.flat  mame/                         tmp/

cyn_anim.mov      media/                        urban.xpm

dc++/             mirrors mandrake              users/

Desktop/          MOO3_teaserintro.mov          vegastrike/

dhal_files/       npq3plug.zip                  viking_kittens.swf

dhal.htm          nwn/                          wine/

dmclient@         phaser.wav                    winebackup/

Documents/        php-gtk/                      wine bak/

downloads/        plugin131_02.trace            wine.tar.bz2

dvd/              PublicHubList.config.bz2      wings_crash.dump

flash_linux/      punk_kittens.swf              wolf-linux-1.4-goty.x86.run*

garnome/          qstat/                        wolf-linux-update-1.41.x86.run*

gently.swf        qstat25b/                     xine/

gnome/            qt6dlls.tar.bz2

[john@bob john]$

 

I really need to clean up my directories :)

Link to comment
Share on other sites

Well, johnnyv probably said it better, but it sounds to me like you are combining both operations. To copy, you just drag the mouse over the text while holding down the left mouse button. To paste, you put the cursor where you want it in the editor, and then press the middle-mouse button.

Link to comment
Share on other sites

Well, I understand what you are saying, but I still stand by my point. From the way he explains it, it sounds like he is doing it simultaneously (as in mouse drag and middle click to copy). Granted, this is cannonfodder, and he probably isn't, but that is what he appears to be saying. (but I'll stop now :) )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...