Cursor positioning using mouse in bash possible? The Next CEO of Stack OverflowIn Ubuntu, is there any terminal that allows for the position of the cursor to be moved with the mouse?Invisible mouse cursorMouse cursor limits using newrez scriptCan bash get out of sync with the filesystem?How to install mouse cursor?Setting paths in Fish like in Bash?Mouse cursor on grubHow to read mouse movement data using bashTrack mouse cursor movement using accelerometer readings17.10.1 Changing mouse cursorMouse cursor stops working Razer Naga

WOW air has ceased operation, can I get my tickets refunded?

Are police here, aren't itthey?

Writing differences on a blackboard

Why does standard notation not preserve intervals (visually)

Which one is the true statement?

The exact meaning of 'Mom made me a sandwich'

Domestic-to-international connection at Orlando (MCO)

How to delete every two lines after 3rd lines in a file contains very large number of lines?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Is there a way to save my career from absolute disaster?

Is a distribution that is normal, but highly skewed considered Gaussian?

Flying from Cape Town to England and return to another province

Why the difference in type-inference over the as-pattern in two similar function definitions?

How to prove a simple equation?

Do I need to write [sic] when a number is less than 10 but isn't written out?

Running a General Election and the European Elections together

Where do students learn to solve polynomial equations these days?

What connection does MS Office have to Netscape Navigator?

Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?

Is micro rebar a better way to reinforce concrete than rebar?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

Won the lottery - how do I keep the money?

Should I tutor a student who I know has cheated on their homework?

Is it my responsibility to learn a new technology in my own time my employer wants to implement?



Cursor positioning using mouse in bash possible?



The Next CEO of Stack OverflowIn Ubuntu, is there any terminal that allows for the position of the cursor to be moved with the mouse?Invisible mouse cursorMouse cursor limits using newrez scriptCan bash get out of sync with the filesystem?How to install mouse cursor?Setting paths in Fish like in Bash?Mouse cursor on grubHow to read mouse movement data using bashTrack mouse cursor movement using accelerometer readings17.10.1 Changing mouse cursorMouse cursor stops working Razer Naga










1















In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.



(I am using fish actually, but I guess referring to bash I reach a wider audience.)










share|improve this question

















  • 2





    A quick solution see here: askubuntu.com/questions/359686/…

    – jmunsch
    Mar 13 '14 at 23:13






  • 1





    From "info readline" character-search Ctrl+] A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+] A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a to move to the beginning of line. And Ctrl+e to move to the end of line. Alt+Shift+f to move forward a word and Alt+Shift+b to move back a word.

    – jmunsch
    Mar 14 '14 at 0:24












  • In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.

    – Sergiy Kolodyazhnyy
    17 mins ago















1















In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.



(I am using fish actually, but I guess referring to bash I reach a wider audience.)










share|improve this question

















  • 2





    A quick solution see here: askubuntu.com/questions/359686/…

    – jmunsch
    Mar 13 '14 at 23:13






  • 1





    From "info readline" character-search Ctrl+] A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+] A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a to move to the beginning of line. And Ctrl+e to move to the end of line. Alt+Shift+f to move forward a word and Alt+Shift+b to move back a word.

    – jmunsch
    Mar 14 '14 at 0:24












  • In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.

    – Sergiy Kolodyazhnyy
    17 mins ago













1












1








1








In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.



(I am using fish actually, but I guess referring to bash I reach a wider audience.)










share|improve this question














In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.



(I am using fish actually, but I guess referring to bash I reach a wider audience.)







command-line bash mouse fish






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 13 '14 at 22:41









RaffaelRaffael

1,71051634




1,71051634







  • 2





    A quick solution see here: askubuntu.com/questions/359686/…

    – jmunsch
    Mar 13 '14 at 23:13






  • 1





    From "info readline" character-search Ctrl+] A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+] A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a to move to the beginning of line. And Ctrl+e to move to the end of line. Alt+Shift+f to move forward a word and Alt+Shift+b to move back a word.

    – jmunsch
    Mar 14 '14 at 0:24












  • In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.

    – Sergiy Kolodyazhnyy
    17 mins ago












  • 2





    A quick solution see here: askubuntu.com/questions/359686/…

    – jmunsch
    Mar 13 '14 at 23:13






  • 1





    From "info readline" character-search Ctrl+] A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+] A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a to move to the beginning of line. And Ctrl+e to move to the end of line. Alt+Shift+f to move forward a word and Alt+Shift+b to move back a word.

    – jmunsch
    Mar 14 '14 at 0:24












  • In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.

    – Sergiy Kolodyazhnyy
    17 mins ago







2




2





A quick solution see here: askubuntu.com/questions/359686/…

– jmunsch
Mar 13 '14 at 23:13





A quick solution see here: askubuntu.com/questions/359686/…

– jmunsch
Mar 13 '14 at 23:13




1




1





From "info readline" character-search Ctrl+] A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+] A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a to move to the beginning of line. And Ctrl+e to move to the end of line. Alt+Shift+f to move forward a word and Alt+Shift+b to move back a word.

– jmunsch
Mar 14 '14 at 0:24






From "info readline" character-search Ctrl+] A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+] A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a to move to the beginning of line. And Ctrl+e to move to the end of line. Alt+Shift+f to move forward a word and Alt+Shift+b to move back a word.

– jmunsch
Mar 14 '14 at 0:24














In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.

– Sergiy Kolodyazhnyy
17 mins ago





In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.

– Sergiy Kolodyazhnyy
17 mins ago










1 Answer
1






active

oldest

votes


















0














Does that work ? It should print escaped sequences on your terminal when using the mouse



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


If it works : test my script on github



Details : Read my answer in another post






share|improve this answer








New contributor




tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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%2f433959%2fcursor-positioning-using-mouse-in-bash-possible%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Does that work ? It should print escaped sequences on your terminal when using the mouse



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


    If it works : test my script on github



    Details : Read my answer in another post






    share|improve this answer








    New contributor




    tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      Does that work ? It should print escaped sequences on your terminal when using the mouse



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


      If it works : test my script on github



      Details : Read my answer in another post






      share|improve this answer








      New contributor




      tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        Does that work ? It should print escaped sequences on your terminal when using the mouse



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


        If it works : test my script on github



        Details : Read my answer in another post






        share|improve this answer








        New contributor




        tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Does that work ? It should print escaped sequences on your terminal when using the mouse



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


        If it works : test my script on github



        Details : Read my answer in another post







        share|improve this answer








        New contributor




        tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 27 mins ago









        tinmarinotinmarino

        1012




        1012




        New contributor




        tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        tinmarino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























            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%2f433959%2fcursor-positioning-using-mouse-in-bash-possible%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

            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»