Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    This looks like it would work in Bash but would need to be re-written for each Readline-enabled program, is that right? And I don't think Python for example even has a way to programmatically set the point.
    – Daniel H
    Commented Mar 31, 2019 at 5:18
  • True : works only on bash and ipython. I don't know why ipython but I guess because it has been well written. I may improved that in the future wih only modifying .inputrc so it would work on perl reply for example.
    – Tinmarino
    Commented Mar 31, 2019 at 14:01
  • 1
    @DanielH : It has already been written for python : run : ipython --TerminalInteractiveShell.mouse_support=True look there : github.com/prompt-toolkit/python-prompt-toolkit/blob/master/…
    – Tinmarino
    Commented Apr 1, 2019 at 15:35