Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDecouple Doc data structure from Ansi console #16
Conversation
pwentz
merged commit 44f7bba
into
master
Dec 19, 2017
pwentz
deleted the
move-ansi-to-rendering
branch
Dec 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pwentz commentedDec 19, 2017
•
edited
Edited 2 times
-
pwentz
edited Dec 19, 2017 (most recent)
-
pwentz
edited Dec 19, 2017
Formattertype alias fromColor,Underline, andBoldconstructors in favor of applying the formatting to the content during the rendering process (display). This allows theDocand ` data structure itself to remain uncoupled from the ANSI console.Colortype constructors now have aColorBrightnesssum type (Standard|Dark).RestoreFormatandbestnow takeisBoldandisUnderlinebool types overMaybe Formattertypes.WithFormatandWithBold(TextFormat) no longer takeFormatterarg.Consolemoved toconsoleFormattingandtoAnsiColor, andansiBrightnessfunctions.ConsoleLayer->DocLayerFormattertype alias