Site Administration Personalizing the User Environment in BSD |
Use your mouse to copy and paste at a terminal. If you’re used to a GUI environment, you might feel a bit out of your element while working at the terminal. Sure, you can learn to map hotkeys and to use navigational tricks, but darn it all, sometimes it’s just nice to be able to copy and paste! Don’t fret; your mouse doesn’t have to go to waste. In fact, depending upon how you have configured your system, the mouse daemonmousedmay already be enabled. The job of this daemon is to listen for mouse data in order to pass it to your console driver.
If X Is Already Installed If you installed and configured X when you installed your system,moused is most likely started for you when you boot up. You can check with this: % grep moused /etc/rc.conf Very good.mousedneeds to know three things:
If you receive similar output, you’re ready to copy and paste. To copy text, simply select it by clicking the left mouse button and dragging. Then, place the mouse where you’d like to paste the text and click the middle button. That’s it.
Configuring a two-button mouse.What if you don’t have three mouse buttons? As the superuser, add the following line to /etc/rc.conf (assuming it’s not already there): moused_flags="-m 2=3" This flag tellsmousedto treat the second, or right, mouse button as if it were the third, or middle, mouse button. Now you can use the right mouse button to paste your copied text. To apply that change, restartmoused: # /etc/rc.d/moused restart
blog comments powered by Disqus |