Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Move cursor in an Ubuntu terminal with the mouse

  1. #1
    Join Date
    Feb 2013
    Beans
    7

    Question Move cursor in an Ubuntu terminal with the mouse

    Hello everyone,

    When I have long command lines in my Ubuntu Terminal, I want to be able to use the mouse to move the pointer to directly modify the command in this position. I didn't find if it is possible to make it. Any ideas?

    Thanks for your help.

  2. #2
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Move cursor in an Ubuntu terminal with the mouse

    i'm using the right/left/up/down arrows from the numpad, its fast / easy.
    by the way, the mouse works inside the terminal of course.

  3. #3
    Join Date
    Feb 2013
    Beans
    7

    Re: Move cursor in an Ubuntu terminal with the mouse

    On my Ubuntu Terminal, Up and Down shows last commands. And I will prefer to use the mouse.

    But I just discover CTR + Right and CTR + LEFT that are quite useful too.

  4. #4
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Move cursor in an Ubuntu terminal with the mouse

    Quote Originally Posted by choinul View Post
    On my Ubuntu Terminal, Up and Down shows last commands. And I will prefer to use the mouse.

    But I just discover CTR + Right and CTR + LEFT that are quite useful too.
    is your mouse working normally everywhere, or is it only an issue inside the terminal ? which kind of mouse is it ?

  5. #5
    Join Date
    Feb 2013
    Beans
    7

    Re: Move cursor in an Ubuntu terminal with the mouse

    Yes, I have no problem with my mouse. For example, I can select something in the terminal, but I can't move the text cursor.

    I think the default behaviour of the mouse on Ubuntu Terminal is like that. And I want to see if it is possible to modify it?

  6. #6
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Move cursor in an Ubuntu terminal with the mouse

    Quote Originally Posted by choinul View Post
    On my Ubuntu Terminal, Up and Down shows last commands. And I will prefer to use the mouse.

    But I just discover CTR + Right and CTR + LEFT that are quite useful too.
    hi
    this comes from (up / down) bash-history. it is set global or in your ~/.bashrc.
    you can even serach vor prefiouse commands by hitting:
    Esc then type /mor --> if you type before the command will come up and you can run it again (you can even edit the line - but this another story).
    type in a terminal: env | grep HISTSIZE to see the size of your bash-history.
    and by the side: terminal don't know mice
    ciao
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

  7. #7
    Join Date
    Feb 2013
    Beans
    7

    Re: Move cursor in an Ubuntu terminal with the mouse

    Ok, good to know.

    But if it is possible to select with the mouse in terminal, it should be possible to move the text cursor also?

  8. #8
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Move cursor in an Ubuntu terminal with the mouse

    Quote Originally Posted by choinul View Post
    Ok, good to know.

    But if it is possible to select with the mouse in terminal, it should be possible to move the text cursor also?
    hi
    oh i forgot. you can copy text from terminal to terminal or terminal to editor and .....
    bring your mouspointer to the beginning of the text you want to copy.
    pull down the left mouse buttom and (left mouse buttom down) and mark the text you want. release the mouse buttom and go to the place where you want the copied text.
    now --> middle klick --> must be there.
    ciao
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

  9. #9
    Join Date
    Feb 2013
    Beans
    7

    Question Re: Move cursor in an Ubuntu terminal with the mouse

    Yes, I know, but what I am looking for is to move the cursor with the mouse.

  10. #10
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,509
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Move cursor in an Ubuntu terminal with the mouse

    Quote Originally Posted by choinul View Post
    Yes, I know, but what I am looking for is to move the cursor with the mouse.
    A terminal is a text based interface that was in use decades before the mouse (and GUI) was invented. Do not expect it to do things it was never designed for.

    You can try using the gpm package as it can add some mouse functionality to a terminal session.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •