Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop in readline replacement #250

Open
memeplex opened this issue Feb 25, 2016 · 6 comments
Open

Drop in readline replacement #250

memeplex opened this issue Feb 25, 2016 · 6 comments

Comments

@memeplex
Copy link

I'm opening this mainly for discussion.

You mention that ppt is not only but also intended as a readline replacement. There are a lot of applications out there that currently depend on readline abi and api, which could certainly benefit from ppt if it could pretend to be readline. The current state of affairs is somewhat disappointing, as we have to wait for the pure ppt version of every tool under the sun. Have you thought about providing a drop-in readline replacement implemented on top of ppt? Do you see any showstopper for this?

athame managed to do what I'm suggesting using vim itself as the backend.

@jonathanslenders
Copy link
Member

Hi @memeplex,

Yes, it's not yet a drop-in replacement. However, there is a pull request to make it compatible with the Python readline API. Note that this is unfinished. It is still on my list of things to do, but never had the highest priority, and there were always more import things to be done. The main goal of that pull request is that prompt-toolkit can be used as the readline implementation for Pypy.

Making it compatible with the readline abi is another thing. I'm not sure about embedding Python code inside a bash/zsh/whatever process. But if that is possible, and we can route all readline operations into Python, that would be very nice.

Jonathan

@memeplex
Copy link
Author

Notice that it could be a client-server architecture instead of an embedding one, althought I think latency could be noticeable in the first case.

@jonathanslenders
Copy link
Member

jonathanslenders commented Jun 2, 2018

[removed finalterm comment]

@asmeurer
Copy link
Contributor

asmeurer commented Jun 2, 2018

@jonathanslenders wrong issue? I don't think this has anything to do with iTerm2 shell integration.

@jonathanslenders
Copy link
Member

Opening again. My mistake. Thanks @asmeurer

@memeplex
Copy link
Author

memeplex commented Jun 2, 2018

For a moment I thought I had been awaken from hibernation in 2050 and pt was installed in every remote server in the cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants