Results 1 to 9 of 9

Thread: how can you access the middle mouse button buffer?

  1. #1
    Join Date
    Sep 2009
    Beans
    236

    how can you access the middle mouse button buffer?

    hi all,

    so, this isn't really a support question, but didn't seem like a cafe question either. in my office there are ubuntu installations everywhere, on laptops and desktops alike. i use the middle mouse button buffer all the time to copy and paste things but have no idea how to access it on a laptop without a middle button. does anyone know if there is out of the box functionality to do this? or any other way to do this?

    thanks for any replies.

    ps. also, by any chance, does anyone know a way to access the output to a terminal, after it has been displayed? i keep finding that there is output that i can't easily recreate that i either want to keep, or to grep through, that kind of thing. any thoughts?

  2. #2
    Join Date
    Sep 2009
    Beans
    236

    Re: how can you access the middle mouse button buffer?

    bump: ..·'·..

    seriously though, surely someone has had this issue before? it seems like the answer should be super simple (yet i have no idea what it is).

  3. #3
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: how can you access the middle mouse button buffer?

    On a laptop you would click both right and left click at the same time to replicate middle click.

    You can redirect the output of terminal commands to a text file like so
    Code:
    my_fancy_terminal_command > output.txt

  4. #4
    Join Date
    Sep 2009
    Beans
    236

    Re: how can you access the middle mouse button buffer?

    thanks for your reply, i'll try the left/right click the next time i have a chance, if it works that will be great (as i keep finding myself highlighting stuff, going to past it before realizing that i can't).

    my question about the teminal buffer is slightly different, though. i want to access it after it has been outputted to the terminal. < and | work fine, but you need to know beforehand that this is what you need to do. if i'm looking at the output of a queue table, which is cleared every two minutes, decide that i want to grep through it however the data is no longer there, but is it still being displayed on my terminal i want to figure out how to access it. that is the kind of scenario i'm wondering about.

    anyhow, thanks for the double button click tip. that will come in very handy.

  5. #5
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: how can you access the middle mouse button buffer?

    Maybe setting up tmux would help if I understand you correctly. Have a look at this

    http://blog.sanctum.geek.nz/vi-mode-in-tmux/

    Of course you have to remember to run tmux

  6. #6
    Join Date
    Jan 2010
    Location
    Hyperborea
    Beans
    2,045
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: how can you access the middle mouse button buffer?

    This is not what you want but it might come in handy
    http://www.omgubuntu.co.uk/2012/04/h...casts-quickly/

  7. #7
    Join Date
    Oct 2010
    Location
    London
    Beans
    482
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: how can you access the middle mouse button buffer?

    I use xdotool. I can't remember if it was installed as default, but you should be able to get it with:

    sudo apt-get install xdotool

    From the commandline, this simulates the middle-click button with:

    xdotool click 2

    What I did (because the buttons on my trackpad are linked together, making it hard to press them both at the same time) was map a button (the 'menu' button in my case, being close to the trackpad) to use that command. In my version I had to go through 'SYSTEM->PREFERENCES->KEYBOARD SHORTCUTS', but I'm not sure how you get to it through Unity.

  8. #8
    Join Date
    Sep 2009
    Beans
    236

    Re: how can you access the middle mouse button buffer?

    hey all, sorry it took me a while to get back to you, thanks for the posts. the middle two buttons work perfectly for my purposes (don;t know how i didn't come across this before). i think tmux looks exactly like what i need for the other thing. just need to figure out if/how i can use it (eg. if you've ssh'ed to another machine will it work? (i assume no), also i don't have sudo access on most of the computers in question).
    anyhow thanks for all the advice.

  9. #9
    Join Date
    May 2010
    Beans
    4

    Re: how can you access the middle mouse button buffer?

    Quote Originally Posted by F.G. View Post
    hi all,

    so, this isn't really a support question, but didn't seem like a cafe question either. in my office there are ubuntu installations everywhere, on laptops and desktops alike. i use the middle mouse button buffer all the time to copy and paste things but have no idea how to access it on a laptop without a middle button. does anyone know if there is out of the box functionality to do this? or any other way to do this?

    thanks for any replies.

    ps. also, by any chance, does anyone know a way to access the output to a terminal, after it has been displayed? i keep finding that there is output that i can't easily recreate that i either want to keep, or to grep through, that kind of thing. any thoughts?
    Just press both left and right at the same time and you will paste, just have what you like to copy highlighted

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •