Mouse support for GNU ReadlineStarting a bash background process on OS XCreating dotfiles for iTerm.app and...

How can the probability of a fumble decrease linearly with more dice?

Why did Luke use his left hand to shoot?

Does the ditching switch allow an A320 to float indefinitely?

Is a creature that sees a Medusa's eyes automatically subjected to a saving throw?

How to politely refuse in-office gym instructor for steroids and protein

Single-row INSERT...SELECT much slower than separate SELECT

Does diversity provide anything that meritocracy does not?

What senses are available to a corpse subjected to a Speak with Dead spell?

If angels and devils are the same species, why would their mortal offspring appear physically different?

How much mayhem could I cause as a fish?

Equivalent of "illegal" for violating civil law

What is the wife of a henpecked husband called?

How is this property called for mod?

Can we "borrow" our answers to populate our own websites?

Why is 'diphthong' pronounced the way it is?

I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."

What is the industry term for house wiring diagrams?

How to not let the Identify spell spoil everything?

Why is that max-Q doesn't occur in transonic regime?

Critique vs nitpicking

Renting a 2CV in France

Microtypography protrusion with Polish quotation marks

When obtaining gender reassignment/plastic surgery overseas, is an emergency travel document required to return home?

How does Leonard in "Memento" remember reading and writing?



Mouse support for GNU Readline


Starting a bash background process on OS XCreating dotfiles for iTerm.app and Terminal.app — how to detect 256 color support?How can I make Bash (or Zsh) run a particular command before each entered command?Why can't I highlight text in a linux terminal emulator with shift+arrow keys?OS X or X11 terminal emulator supporting proportional fontsreadline / bash: How to map Escape key and Arrow keys?Is it possible to use a terminal emulator with the LPT port?Mouse malfunction with beeping noiseTerminator/vim Mouse Issueline wrapping breaks intermittently (R, tmux, readline)













1















Is it possible to get programs using GNU Readline (e.g. Bash, the Python REPL, or anything else that responds to ~/.inputrc) to let you edit the current line using the mouse? For example, I’d like to be able to click at a specific place in the line to move the cursor, or select a region of text.



I suspect the answer is “no, this is not supported”, given that I have found no useful Google results about Readline (the best I’ve found is mouse support in ZSH, which is nice because I do use it as my shell but it doesn’t help with other Readline programs), but I also haven’t been able to confirm that.



The closest I've found to this kind of thing in arbitrary Readline programs is that some terminal emulators attempt to detect when Readline is active and emit arrow-key sequences on click. I'd rather have this handled by Readline if possible, both because I expect it would do a better job and because I like the terminal emulator I currently use, which doesn't support that.










share|improve this question





























    1















    Is it possible to get programs using GNU Readline (e.g. Bash, the Python REPL, or anything else that responds to ~/.inputrc) to let you edit the current line using the mouse? For example, I’d like to be able to click at a specific place in the line to move the cursor, or select a region of text.



    I suspect the answer is “no, this is not supported”, given that I have found no useful Google results about Readline (the best I’ve found is mouse support in ZSH, which is nice because I do use it as my shell but it doesn’t help with other Readline programs), but I also haven’t been able to confirm that.



    The closest I've found to this kind of thing in arbitrary Readline programs is that some terminal emulators attempt to detect when Readline is active and emit arrow-key sequences on click. I'd rather have this handled by Readline if possible, both because I expect it would do a better job and because I like the terminal emulator I currently use, which doesn't support that.










    share|improve this question



























      1












      1








      1








      Is it possible to get programs using GNU Readline (e.g. Bash, the Python REPL, or anything else that responds to ~/.inputrc) to let you edit the current line using the mouse? For example, I’d like to be able to click at a specific place in the line to move the cursor, or select a region of text.



      I suspect the answer is “no, this is not supported”, given that I have found no useful Google results about Readline (the best I’ve found is mouse support in ZSH, which is nice because I do use it as my shell but it doesn’t help with other Readline programs), but I also haven’t been able to confirm that.



      The closest I've found to this kind of thing in arbitrary Readline programs is that some terminal emulators attempt to detect when Readline is active and emit arrow-key sequences on click. I'd rather have this handled by Readline if possible, both because I expect it would do a better job and because I like the terminal emulator I currently use, which doesn't support that.










      share|improve this question
















      Is it possible to get programs using GNU Readline (e.g. Bash, the Python REPL, or anything else that responds to ~/.inputrc) to let you edit the current line using the mouse? For example, I’d like to be able to click at a specific place in the line to move the cursor, or select a region of text.



      I suspect the answer is “no, this is not supported”, given that I have found no useful Google results about Readline (the best I’ve found is mouse support in ZSH, which is nice because I do use it as my shell but it doesn’t help with other Readline programs), but I also haven’t been able to confirm that.



      The closest I've found to this kind of thing in arbitrary Readline programs is that some terminal emulators attempt to detect when Readline is active and emit arrow-key sequences on click. I'd rather have this handled by Readline if possible, both because I expect it would do a better job and because I like the terminal emulator I currently use, which doesn't support that.







      bash terminal mouse readline






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 6 hours ago







      Daniel H

















      asked Feb 23 at 0:04









      Daniel HDaniel H

      1,3611922




      1,3611922






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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%2fsuperuser.com%2fquestions%2f1408645%2fmouse-support-for-gnu-readline%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1408645%2fmouse-support-for-gnu-readline%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

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...