Release v0.8.0 - asAnsiChars, asAnsiTexts, and just in general: Ansi
The latest release of JCLI has been released, mostly featuring new InputRanges to help parse ANSI-encoded strings.
Changelog
The following changes were implemented:
- Feature - Add
AsAnsiTextRange
andasAnsiTexts
to convert any range ofAnsiSection
s into a range ofAnsiText
s. - Feature - Add
AsAnsiCharRange
andasAnsiChars
to convert any range ofAnsiSection
s into a range ofAnsiChar
s. - Feature - Add
AnsiSectionRange
, a range that breaks up a string into seperate ANSI encoding sections, and plain text sections. - Feature - Add
AnsiText.rawText[set]
to set the raw, unencoded text. - Feature - Add
bg
andfg
setter overrides toAnsiText
that take anAnsiColour
. - Testing - Rewrite the example test runner into a D version. The results look awesome.
- Breaking - Rename
TextBufferChar
toAnsiChar
, and move it intoansi.d
. - Tweak - Mark
parser.d
as@safe
- Fix -
AnsiColour
's RGB ctor now correctly sets the colour type toAnsiColourType.rgb
. - Fix -
AnsiText
's colour setters now correctly set theisBg
flag. - Very important - A very important commit was made.