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

Windows support #36

Open
thomasballinger opened this issue Sep 4, 2014 · 3 comments
Open

Windows support #36

thomasballinger opened this issue Sep 4, 2014 · 3 comments

Comments

@thomasballinger
Copy link
Member

I don't know how possible this is: the main issues in my mind are:

  • nonblocking reads of stdin
  • translating ANSI escape sequences to window (colorama does most of this)
  • finding out the current cursor position
  • signal handling is different - curtsies needs to be able to be responsible for its own signal handling

@lohmataja and I were thinking about how possible it was. Nonblocking reads could be handled by a thread, ANSI escape sequence translation can happen with colorama mostly. We could move most signal handling back into curtsies, and pass in callbacks that could be triggered by a signal handler or whatever Windows does.

The first step might be getting fmtstr compatible (mostly just colorama), then getting formatstring.dumb_display working, then getting window.FullscreenWindow working. Next would be working on input.Input.

@thomasballinger
Copy link
Member Author

Look at what the python prompt toolkit team did at https://github.com/jonathanslenders/python-prompt-toolkit/tree/38ea451dc4d8e13937a4ccad680d02815fd9febc/prompt_toolkit/eventloop for a take on this

@thomasballinger
Copy link
Member Author

The goal of this would be to get bpython running on Windows - any hacks requires to make this happen would be acceptable. Blessed is trying to do this right, see jquast/blessed#18

@coolcoder613eb
Copy link

on windows 10/11 ansi escapes work,
you just have to do os.system('') and it works.

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

2 participants