-
Notifications
You must be signed in to change notification settings - Fork 8
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
BREAKING CHANGES #5
Comments
Breaking Changes in 1.0.0-beta.6New effect namesThese effects were renamed:
Drop blink_fastBlink fast doesn't seem to be supported by most modern terminals. It was dropped for a cleaner api and possible unwanted side-effects. Merge resetters for bold and dimFixes: #3 It turns out that most terminal use the same reset sequence for both That measn |
Breaking Changes in 1.0.0-beta.7Beta 7 comes with a lot of changes in the Customization API. I think this post is only relevant if you use the Customization API. Render-functions movedThe default render functions moved from Changes within the customization APIBefore from sty import fg
# Direct attribute assignment
fg.orange = ('rgb', (255, 150, 50))
# Attribute assignment via method
fg.set('my_color', 'eightbit', 51) Since from sty import fg, Rule, Render
# Direct attribute assignment
fg.orange = Rule(Render.rgb_fg, 255, 150, 50)
# Attribute assignment via method
fg.set_rule('my_color', Rule(Render.eightbit_fg, 51)) As you see there are a couple of changes.
|
Breaking Changes in 1.0.0-beta.9The customization API was rewritten. Please refer to the docs: https://feluxe.github.io/sty/docs/customizing.html |
Breaking Changes in 1.0.0-beta.10sty's minimal required version increased from |
Breaking Changes in 1.0.0-beta.11The refactoring of the Base class let to one simple change in the customization interface. When you create a register class, you now have to call class FgRegister(Base):
yellow: str
red: str
# ...
def __init__(self):
super().__init__() # <--- This is necessary now.
self.set_renderfunc(Sgr, renderfunc.sgr)
self.set_renderfunc(EightbitFg, renderfunc.eightbit_fg)
# ... |
Further changes will be posted to the releases page:https://github.com/feluxe/sty/releases You can use the |
Subscribe to this in order to get notifications for breaking changes.
The text was updated successfully, but these errors were encountered: