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

back FmtStr objects with Blessed/Blessings colorstring output #80

Open
thomasballinger opened this issue Oct 20, 2015 · 4 comments
Open
Labels

Comments

@thomasballinger
Copy link
Member

We could do this before we switch to Blessed, but it'd be large.

@thomasballinger
Copy link
Member Author

The weakest version of this would be just ripping out termformatconstants.py, but there's a lot of other duplicated work too.

Another option would be completely doing away with our own internal representation, and reparsing terminal-formatted strings each time we do math with them.

FmtStrs are nice for doing things like "start with a line, then stick the text "hello" in bold into spaces 10-16 of it. I'm not sure how this works with the fact that YOU DON'T ACTUALLY KNOW how big a string is until you're talking about a specific terminal (double width characters). Cutting into it is going to be more complicated.

@thomasballinger
Copy link
Member Author

This sounds harder and less important than fixing the input code.

@thomasballinger
Copy link
Member Author

Most important is giving parsing input character sequences and understanding them via blessed - let's start with that

@thomasballinger
Copy link
Member Author

blocked on Blessed getting better parsing so that code can be used to produce FmtStrs

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

No branches or pull requests

1 participant