[−][src]Module termimage::migration::v1_0
Migrating to termimage v1.0
In termimage v0.5.1 and earlier, the only ANSI colour table available was based on a black-on-white terminal screenshot.
This has proved to be a problem for standard white-on-black terminals, and so another one was added in v1.0.0; however, the single-table approach was pervasive and required breakages:
termimage::util::ANSI_COLOURSwas renamed totermimage::util::ANSI_COLOURS_WHITE_BG, andtermimage::util::ANSI_COLOURS_BLACK_BGwas addedtermimage::util::ANSI_BG_COLOURSwas removed, and replaced withtermimage::util::bg_colours_for()termimage::ops::write_ansi()now takes aforeground_coloursargument and derives the background therefrom; supplytermimage::util::ANSI_COLOURS_WHITE_BGfor the old behaviour- the encapsulated value in
termimage::Options::ansi_outis now an enum, explicitly delineating which of truecolor/simple-on-black/simple-on-white to print, with the values updated to [variant][-background]