Gentoo Forums
Gentoo Forums
Quick Search: in
Simple Noob Question [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
xkalibur1554
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 206
Location: USA

PostPosted: Mon Apr 11, 2005 7:01 pm    Post subject: Simple Noob Question [SOLVED] Reply with quote

How do you copy and paste code from a terminal to say the gentoo forums, or another text editor?

Last edited by xkalibur1554 on Mon Apr 11, 2005 11:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Earthwings
Administrator
Administrator


Joined: 14 Apr 2003
Posts: 7723
Location: Karlsruhe, Germany

PostPosted: Mon Apr 11, 2005 7:03 pm    Post subject: Reply with quote

Just select it with the mouse and paste it with the middle mouse button. You might have to emerge gpm and start it first.
Back to top
View user's profile Send private message
xkalibur1554
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 206
Location: USA

PostPosted: Mon Apr 11, 2005 7:19 pm    Post subject: Reply with quote

i am on a laptop, i have two buttons. how do i start gpm? and what is the middle button when you only have two?
Back to top
View user's profile Send private message
Earthwings
Administrator
Administrator


Joined: 14 Apr 2003
Posts: 7723
Location: Karlsruhe, Germany

PostPosted: Mon Apr 11, 2005 7:27 pm    Post subject: Reply with quote

Code:
emerge gpm && gpm
You might need additional parameters, see the output when starting gpm. A third mouse button can be emulated by clicking the two mouse buttons simultaneously. Not sure where to enable that at the moment.
Back to top
View user's profile Send private message
xkalibur1554
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 206
Location: USA

PostPosted: Mon Apr 11, 2005 7:31 pm    Post subject: Reply with quote

thank you....when you know how to emulate that, could you let me know? Thank you again.
Back to top
View user's profile Send private message
Earthwings
Administrator
Administrator


Joined: 14 Apr 2003
Posts: 7723
Location: Karlsruhe, Germany

PostPosted: Mon Apr 11, 2005 7:44 pm    Post subject: Reply with quote

Looks like you don't need it.
http://www.themanualpage.org/man/man8/gpm.8.php wrote:

To select text press the left mouse button and drag the
mouse. To paste text in the same or another console,
press the middle button. The right button is used to
extend the selection, like in `xterm'.

Two-button mice use the right button to paste text.
Back to top
View user's profile Send private message
nightm4re
Guru
Guru


Joined: 20 Jun 2004
Posts: 519
Location: Providence, RI, USA

PostPosted: Mon Apr 11, 2005 8:16 pm    Post subject: Reply with quote

i thought two button mice can use "3 button emulation", which means you press buttons 1 and 2 together to simulate the third.
_________________
Nitrogen - GtkMM based background setter/restorer, please test!
Minuslab | d.minuslab.net
Back to top
View user's profile Send private message
russianpirate
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1167
Location: Detroit, MI

PostPosted: Mon Apr 11, 2005 9:31 pm    Post subject: Reply with quote

ya u have to enable that in X.. and its only for X apps.. since in console u just select and right click
Back to top
View user's profile Send private message
xkalibur1554
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 206
Location: USA

PostPosted: Mon Apr 11, 2005 11:01 pm    Post subject: Reply with quote

i tired the whole select all in eterm, and it did nothing. i still cannot copy and paste. clicking both at the same time does not work either. can anyone tell me how to copy and paste?
Back to top
View user's profile Send private message
qanuta
n00b
n00b


Joined: 04 Apr 2003
Posts: 43
Location: NJ, USA

PostPosted: Mon Apr 11, 2005 11:35 pm    Post subject: Reply with quote

To enable the three button emulation in X applications (i.e. clicking both buttons simultaneously to emulate a middle mouse button), you need to edit your /etc/X11/XF86Config file. In the "InputDevice" section which describes your mouse, add the line:
Code:
   Option      "Emulate3Buttons"

You'll then need to restart X for the change to take effect.
Back to top
View user's profile Send private message
xkalibur1554
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 206
Location: USA

PostPosted: Mon Apr 11, 2005 11:38 pm    Post subject: Reply with quote

i cannot find that file in X11 is that where it is?
Back to top
View user's profile Send private message
qanuta
n00b
n00b


Joined: 04 Apr 2003
Posts: 43
Location: NJ, USA

PostPosted: Tue Apr 12, 2005 12:11 am    Post subject: Reply with quote

To find out where your XF86Config file is located, open up an xterm and type "xset q". One of the lines outputted will say "Config File:". This is the file you need to edit.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum