Skip to content

Dahlia.rs 2.0.0

Latest
Compare
Choose a tag to compare
@trag1c trag1c released this 08 Sep 21:06
· 1 commit to master since this release
1b551b4

This release follows the Dahlia Specification v1.0.0.
Huge thanks to @Maneren for help! ❤️

Added

  • Builder pattern for the Dahlia struct
  • Automatic color depth detection (builder has a method with_auto_depth)
  • Style-specific reset codes
  • The &_ escape code and escape method
  • The clean_ansi function should now handle way more ANSI escape codes
  • Comprehensive test suite
  • String conversions are now approximately ~20% faster

Changed

  • The "Blink" style code was changed from &p to &k
  • The custom color syntax was changed from &[#ffaff3] to &#ffaff3; and now
    supports shorthand 3-digit codes
  • The full reset code is now &R instead of &r
  • The "Hide" style code was changed from &k to &h
  • The no_reset parameter was renamed to auto_reset and now
    defaults to True

Removed

  • Dahlia::reset
  • Dahlia::test
  • Dahlia's no_color parameter
  • The &g code