You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
back FmtStr objects with Blessed/Blessings colorstring output #80
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.
Activity
thomasballinger commentedon Nov 3, 2015
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 commentedon Nov 3, 2015
This sounds harder and less important than fixing the input code.
thomasballinger commentedon Nov 4, 2015
Most important is giving parsing input character sequences and understanding them via blessed - let's start with that
thomasballinger commentedon Nov 4, 2015
blocked on Blessed getting better parsing so that code can be used to produce FmtStrs