In Ubuntu, is there any terminal that allows for the position of the cursor to be moved with the mouse?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







13















For example, if I find I miss one letter in a long command, currently I need to press ← to move the cursor, which is slow.
Why can't we use mouse to put the cursor in the place we want?










share|improve this question




















  • 1





    Did you try Ctrl - left or Ctrl - right?

    – user85164
    Oct 16 '13 at 4:48






  • 1





    Thank. I knew it. I hope a more flexible move. I think the mouse is much more convenient. I find the python console in PyCharm is as friendly as an editor. But how about other terminals?

    – user1914692
    Oct 16 '13 at 5:27






  • 1





    I would love to know if this was possible with gnome-terminal. Apparently you can do so in OSX: news.ycombinator.com/item?id=7051091.

    – Aibara
    Jan 14 '14 at 6:24











  • For native terminal, you will probably have no luck. See the mouse section in the terminal howto of The Linux Documentation Project.

    – Izzy
    Jan 16 '14 at 21:58


















13















For example, if I find I miss one letter in a long command, currently I need to press ← to move the cursor, which is slow.
Why can't we use mouse to put the cursor in the place we want?










share|improve this question




















  • 1





    Did you try Ctrl - left or Ctrl - right?

    – user85164
    Oct 16 '13 at 4:48






  • 1





    Thank. I knew it. I hope a more flexible move. I think the mouse is much more convenient. I find the python console in PyCharm is as friendly as an editor. But how about other terminals?

    – user1914692
    Oct 16 '13 at 5:27






  • 1





    I would love to know if this was possible with gnome-terminal. Apparently you can do so in OSX: news.ycombinator.com/item?id=7051091.

    – Aibara
    Jan 14 '14 at 6:24











  • For native terminal, you will probably have no luck. See the mouse section in the terminal howto of The Linux Documentation Project.

    – Izzy
    Jan 16 '14 at 21:58














13












13








13


5






For example, if I find I miss one letter in a long command, currently I need to press ← to move the cursor, which is slow.
Why can't we use mouse to put the cursor in the place we want?










share|improve this question
















For example, if I find I miss one letter in a long command, currently I need to press ← to move the cursor, which is slow.
Why can't we use mouse to put the cursor in the place we want?







gnome-terminal






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 17 '14 at 12:57









Richard

6,25183765




6,25183765










asked Oct 16 '13 at 4:25









user1914692user1914692

200211




200211








  • 1





    Did you try Ctrl - left or Ctrl - right?

    – user85164
    Oct 16 '13 at 4:48






  • 1





    Thank. I knew it. I hope a more flexible move. I think the mouse is much more convenient. I find the python console in PyCharm is as friendly as an editor. But how about other terminals?

    – user1914692
    Oct 16 '13 at 5:27






  • 1





    I would love to know if this was possible with gnome-terminal. Apparently you can do so in OSX: news.ycombinator.com/item?id=7051091.

    – Aibara
    Jan 14 '14 at 6:24











  • For native terminal, you will probably have no luck. See the mouse section in the terminal howto of The Linux Documentation Project.

    – Izzy
    Jan 16 '14 at 21:58














  • 1





    Did you try Ctrl - left or Ctrl - right?

    – user85164
    Oct 16 '13 at 4:48






  • 1





    Thank. I knew it. I hope a more flexible move. I think the mouse is much more convenient. I find the python console in PyCharm is as friendly as an editor. But how about other terminals?

    – user1914692
    Oct 16 '13 at 5:27






  • 1





    I would love to know if this was possible with gnome-terminal. Apparently you can do so in OSX: news.ycombinator.com/item?id=7051091.

    – Aibara
    Jan 14 '14 at 6:24











  • For native terminal, you will probably have no luck. See the mouse section in the terminal howto of The Linux Documentation Project.

    – Izzy
    Jan 16 '14 at 21:58








1




1





Did you try Ctrl - left or Ctrl - right?

– user85164
Oct 16 '13 at 4:48





Did you try Ctrl - left or Ctrl - right?

– user85164
Oct 16 '13 at 4:48




1




1





Thank. I knew it. I hope a more flexible move. I think the mouse is much more convenient. I find the python console in PyCharm is as friendly as an editor. But how about other terminals?

– user1914692
Oct 16 '13 at 5:27





Thank. I knew it. I hope a more flexible move. I think the mouse is much more convenient. I find the python console in PyCharm is as friendly as an editor. But how about other terminals?

– user1914692
Oct 16 '13 at 5:27




1




1





I would love to know if this was possible with gnome-terminal. Apparently you can do so in OSX: news.ycombinator.com/item?id=7051091.

– Aibara
Jan 14 '14 at 6:24





I would love to know if this was possible with gnome-terminal. Apparently you can do so in OSX: news.ycombinator.com/item?id=7051091.

– Aibara
Jan 14 '14 at 6:24













For native terminal, you will probably have no luck. See the mouse section in the terminal howto of The Linux Documentation Project.

– Izzy
Jan 16 '14 at 21:58





For native terminal, you will probably have no luck. See the mouse section in the terminal howto of The Linux Documentation Project.

– Izzy
Jan 16 '14 at 21:58










4 Answers
4






active

oldest

votes


















7





+50









Use emacs.



sudo apt-get install emacs


Upon the install, start emacs:
emacs



Press Alt+X, and type term and press Enter. Voila!



You have a terminal where you can change the cursor position with mouse.



If mouse click does not change the cursor (in 99% of the cases, it will, by default), then put (xterm-mouse-mode t) in your .emacs file:



echo (xterm-mouse-mode t) > ~/.emacs





share|improve this answer


























  • Since there doesn't seem to be a way with gnome-terminal, this seems like the easiest method.

    – Aibara
    Jan 20 '14 at 2:45











  • I just tried the method. The mouse click does not change the cursor. Then as instructed, I put: echo (xterm-mouse-mode t) > ~/.emacs; The error information is: bash: syntax error near unexpected token `xterm-mouse-mode' (I use Ubuntu 16.04)

    – user1914692
    Aug 14 '16 at 16:27



















1














The terminal itself can take mouse input. You can test this opening a text file with nano and enabling mouse



(M-M)                   Mouse support enable/disable


(On my keyboard that's ESC+M.)



Then you can change the position of the cursor by clicking.

If you are asking about changing the position of cursor in the SHELL, there was a discussion in ubuntuforums mentioning gpm. There is also a duplicate of this question in stackoverflow with some alternatives proposed.






share|improve this answer


























  • The question is about the shell, specifically moving the cusor position (since you can easily select text with the mouse, for instance, in gnome-terminal).

    – Aibara
    Jan 14 '14 at 19:53











  • why the downvote? The original question was a bit ambiguous.

    – Eero Aaltonen
    Jan 21 '14 at 9:11



















0














In vi mode (when the the command line behave as vi, enabled by set -o vi) you can launch a full vi to edit the current line:
Pass in command mode with ESC, then press v. and in vi you should be able to use your mouse to move to the expect character.



I don't know if this kind of command exist for the emacs mode (set -o emacs), the default one.






share|improve this answer































    0














    echo -e "e[?1000;1006;1015h" # Enable mouse tracking


    Script : I made a bash script to move bash readline cursor on mouse click on my github



    Details : Read my answer in another post






    share|improve this answer
























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f359686%2fin-ubuntu-is-there-any-terminal-that-allows-for-the-position-of-the-cursor-to-b%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      7





      +50









      Use emacs.



      sudo apt-get install emacs


      Upon the install, start emacs:
      emacs



      Press Alt+X, and type term and press Enter. Voila!



      You have a terminal where you can change the cursor position with mouse.



      If mouse click does not change the cursor (in 99% of the cases, it will, by default), then put (xterm-mouse-mode t) in your .emacs file:



      echo (xterm-mouse-mode t) > ~/.emacs





      share|improve this answer


























      • Since there doesn't seem to be a way with gnome-terminal, this seems like the easiest method.

        – Aibara
        Jan 20 '14 at 2:45











      • I just tried the method. The mouse click does not change the cursor. Then as instructed, I put: echo (xterm-mouse-mode t) > ~/.emacs; The error information is: bash: syntax error near unexpected token `xterm-mouse-mode' (I use Ubuntu 16.04)

        – user1914692
        Aug 14 '16 at 16:27
















      7





      +50









      Use emacs.



      sudo apt-get install emacs


      Upon the install, start emacs:
      emacs



      Press Alt+X, and type term and press Enter. Voila!



      You have a terminal where you can change the cursor position with mouse.



      If mouse click does not change the cursor (in 99% of the cases, it will, by default), then put (xterm-mouse-mode t) in your .emacs file:



      echo (xterm-mouse-mode t) > ~/.emacs





      share|improve this answer


























      • Since there doesn't seem to be a way with gnome-terminal, this seems like the easiest method.

        – Aibara
        Jan 20 '14 at 2:45











      • I just tried the method. The mouse click does not change the cursor. Then as instructed, I put: echo (xterm-mouse-mode t) > ~/.emacs; The error information is: bash: syntax error near unexpected token `xterm-mouse-mode' (I use Ubuntu 16.04)

        – user1914692
        Aug 14 '16 at 16:27














      7





      +50







      7





      +50



      7




      +50





      Use emacs.



      sudo apt-get install emacs


      Upon the install, start emacs:
      emacs



      Press Alt+X, and type term and press Enter. Voila!



      You have a terminal where you can change the cursor position with mouse.



      If mouse click does not change the cursor (in 99% of the cases, it will, by default), then put (xterm-mouse-mode t) in your .emacs file:



      echo (xterm-mouse-mode t) > ~/.emacs





      share|improve this answer















      Use emacs.



      sudo apt-get install emacs


      Upon the install, start emacs:
      emacs



      Press Alt+X, and type term and press Enter. Voila!



      You have a terminal where you can change the cursor position with mouse.



      If mouse click does not change the cursor (in 99% of the cases, it will, by default), then put (xterm-mouse-mode t) in your .emacs file:



      echo (xterm-mouse-mode t) > ~/.emacs






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jan 14 '14 at 21:03









      Seth

      35.4k27113166




      35.4k27113166










      answered Jan 14 '14 at 7:01









      Bhavin DoshiBhavin Doshi

      1,8531833




      1,8531833













      • Since there doesn't seem to be a way with gnome-terminal, this seems like the easiest method.

        – Aibara
        Jan 20 '14 at 2:45











      • I just tried the method. The mouse click does not change the cursor. Then as instructed, I put: echo (xterm-mouse-mode t) > ~/.emacs; The error information is: bash: syntax error near unexpected token `xterm-mouse-mode' (I use Ubuntu 16.04)

        – user1914692
        Aug 14 '16 at 16:27



















      • Since there doesn't seem to be a way with gnome-terminal, this seems like the easiest method.

        – Aibara
        Jan 20 '14 at 2:45











      • I just tried the method. The mouse click does not change the cursor. Then as instructed, I put: echo (xterm-mouse-mode t) > ~/.emacs; The error information is: bash: syntax error near unexpected token `xterm-mouse-mode' (I use Ubuntu 16.04)

        – user1914692
        Aug 14 '16 at 16:27

















      Since there doesn't seem to be a way with gnome-terminal, this seems like the easiest method.

      – Aibara
      Jan 20 '14 at 2:45





      Since there doesn't seem to be a way with gnome-terminal, this seems like the easiest method.

      – Aibara
      Jan 20 '14 at 2:45













      I just tried the method. The mouse click does not change the cursor. Then as instructed, I put: echo (xterm-mouse-mode t) > ~/.emacs; The error information is: bash: syntax error near unexpected token `xterm-mouse-mode' (I use Ubuntu 16.04)

      – user1914692
      Aug 14 '16 at 16:27





      I just tried the method. The mouse click does not change the cursor. Then as instructed, I put: echo (xterm-mouse-mode t) > ~/.emacs; The error information is: bash: syntax error near unexpected token `xterm-mouse-mode' (I use Ubuntu 16.04)

      – user1914692
      Aug 14 '16 at 16:27













      1














      The terminal itself can take mouse input. You can test this opening a text file with nano and enabling mouse



      (M-M)                   Mouse support enable/disable


      (On my keyboard that's ESC+M.)



      Then you can change the position of the cursor by clicking.

      If you are asking about changing the position of cursor in the SHELL, there was a discussion in ubuntuforums mentioning gpm. There is also a duplicate of this question in stackoverflow with some alternatives proposed.






      share|improve this answer


























      • The question is about the shell, specifically moving the cusor position (since you can easily select text with the mouse, for instance, in gnome-terminal).

        – Aibara
        Jan 14 '14 at 19:53











      • why the downvote? The original question was a bit ambiguous.

        – Eero Aaltonen
        Jan 21 '14 at 9:11
















      1














      The terminal itself can take mouse input. You can test this opening a text file with nano and enabling mouse



      (M-M)                   Mouse support enable/disable


      (On my keyboard that's ESC+M.)



      Then you can change the position of the cursor by clicking.

      If you are asking about changing the position of cursor in the SHELL, there was a discussion in ubuntuforums mentioning gpm. There is also a duplicate of this question in stackoverflow with some alternatives proposed.






      share|improve this answer


























      • The question is about the shell, specifically moving the cusor position (since you can easily select text with the mouse, for instance, in gnome-terminal).

        – Aibara
        Jan 14 '14 at 19:53











      • why the downvote? The original question was a bit ambiguous.

        – Eero Aaltonen
        Jan 21 '14 at 9:11














      1












      1








      1







      The terminal itself can take mouse input. You can test this opening a text file with nano and enabling mouse



      (M-M)                   Mouse support enable/disable


      (On my keyboard that's ESC+M.)



      Then you can change the position of the cursor by clicking.

      If you are asking about changing the position of cursor in the SHELL, there was a discussion in ubuntuforums mentioning gpm. There is also a duplicate of this question in stackoverflow with some alternatives proposed.






      share|improve this answer















      The terminal itself can take mouse input. You can test this opening a text file with nano and enabling mouse



      (M-M)                   Mouse support enable/disable


      (On my keyboard that's ESC+M.)



      Then you can change the position of the cursor by clicking.

      If you are asking about changing the position of cursor in the SHELL, there was a discussion in ubuntuforums mentioning gpm. There is also a duplicate of this question in stackoverflow with some alternatives proposed.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited May 23 '17 at 12:39









      Community

      1




      1










      answered Jan 14 '14 at 8:36









      Eero AaltonenEero Aaltonen

      1,02121129




      1,02121129













      • The question is about the shell, specifically moving the cusor position (since you can easily select text with the mouse, for instance, in gnome-terminal).

        – Aibara
        Jan 14 '14 at 19:53











      • why the downvote? The original question was a bit ambiguous.

        – Eero Aaltonen
        Jan 21 '14 at 9:11



















      • The question is about the shell, specifically moving the cusor position (since you can easily select text with the mouse, for instance, in gnome-terminal).

        – Aibara
        Jan 14 '14 at 19:53











      • why the downvote? The original question was a bit ambiguous.

        – Eero Aaltonen
        Jan 21 '14 at 9:11

















      The question is about the shell, specifically moving the cusor position (since you can easily select text with the mouse, for instance, in gnome-terminal).

      – Aibara
      Jan 14 '14 at 19:53





      The question is about the shell, specifically moving the cusor position (since you can easily select text with the mouse, for instance, in gnome-terminal).

      – Aibara
      Jan 14 '14 at 19:53













      why the downvote? The original question was a bit ambiguous.

      – Eero Aaltonen
      Jan 21 '14 at 9:11





      why the downvote? The original question was a bit ambiguous.

      – Eero Aaltonen
      Jan 21 '14 at 9:11











      0














      In vi mode (when the the command line behave as vi, enabled by set -o vi) you can launch a full vi to edit the current line:
      Pass in command mode with ESC, then press v. and in vi you should be able to use your mouse to move to the expect character.



      I don't know if this kind of command exist for the emacs mode (set -o emacs), the default one.






      share|improve this answer




























        0














        In vi mode (when the the command line behave as vi, enabled by set -o vi) you can launch a full vi to edit the current line:
        Pass in command mode with ESC, then press v. and in vi you should be able to use your mouse to move to the expect character.



        I don't know if this kind of command exist for the emacs mode (set -o emacs), the default one.






        share|improve this answer


























          0












          0








          0







          In vi mode (when the the command line behave as vi, enabled by set -o vi) you can launch a full vi to edit the current line:
          Pass in command mode with ESC, then press v. and in vi you should be able to use your mouse to move to the expect character.



          I don't know if this kind of command exist for the emacs mode (set -o emacs), the default one.






          share|improve this answer













          In vi mode (when the the command line behave as vi, enabled by set -o vi) you can launch a full vi to edit the current line:
          Pass in command mode with ESC, then press v. and in vi you should be able to use your mouse to move to the expect character.



          I don't know if this kind of command exist for the emacs mode (set -o emacs), the default one.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 14 '14 at 12:18









          NimlarNimlar

          34636




          34636























              0














              echo -e "e[?1000;1006;1015h" # Enable mouse tracking


              Script : I made a bash script to move bash readline cursor on mouse click on my github



              Details : Read my answer in another post






              share|improve this answer




























                0














                echo -e "e[?1000;1006;1015h" # Enable mouse tracking


                Script : I made a bash script to move bash readline cursor on mouse click on my github



                Details : Read my answer in another post






                share|improve this answer


























                  0












                  0








                  0







                  echo -e "e[?1000;1006;1015h" # Enable mouse tracking


                  Script : I made a bash script to move bash readline cursor on mouse click on my github



                  Details : Read my answer in another post






                  share|improve this answer













                  echo -e "e[?1000;1006;1015h" # Enable mouse tracking


                  Script : I made a bash script to move bash readline cursor on mouse click on my github



                  Details : Read my answer in another post







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 31 at 5:10









                  tinmarinotinmarino

                  1012




                  1012






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f359686%2fin-ubuntu-is-there-any-terminal-that-allows-for-the-position-of-the-cursor-to-b%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How did Captain America manage to do this?

                      迪纳利

                      南乌拉尔铁路局