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

Switch bpython.embed to curtsies #484

Closed
sebastinas opened this issue Feb 18, 2015 · 4 comments
Closed

Switch bpython.embed to curtsies #484

sebastinas opened this issue Feb 18, 2015 · 4 comments
Assignees
Milestone

Comments

@sebastinas
Copy link
Contributor

@sebastinas sebastinas commented Feb 18, 2015

bpython.embed still points to bpython.cli. This should also reflect the new default.

@sebastinas sebastinas self-assigned this Feb 18, 2015
@sebastinas sebastinas added this to the 0.15 milestone Feb 18, 2015
@sebastinas
Copy link
Contributor Author

@sebastinas sebastinas commented Feb 18, 2015

Before doing that we need to make bpython.curtsies.main behave like bpython.cli.main. There are two issues:

  • the return code from the script or obtained from SystemExit is reraised and thus killing the process after the first execution.
  • the session is not returned.
@sebastinas
Copy link
Contributor Author

@sebastinas sebastinas commented Feb 18, 2015

The second point is not relevant for curtsies.

@MrYoda
Copy link

@MrYoda MrYoda commented Jun 28, 2016

How can I get embed with cli, not curtsies?
In curtsies mode not working some keys: home, delete, end (got it on Ubuntu 14.04, 15.04)

@thomasballinger
Copy link
Member

@thomasballinger thomasballinger commented Jun 28, 2016

from bpython.cli import main as oldbpython
oldbpython(locals_=locals())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.