I'm looking for a way to support ANSI colors with NSAttributedString. The primary attributes I need supported are foreground/background color. Ideally I'd like to have this code portable between macOS and Linux. However macOS utilities UIColor for the definition of color. Is there any thought or issue in creating a UIColor-like API for Linux Swift?
My ultimate goal is to be able to be able to generate ANSI, HTML, or RTF.