summaryrefslogtreecommitdiffstats
path: root/src/ansi
AgeCommit message (Collapse)Author
2020-08-14New ANSI escape sequence parser based on vteDan Davison
Reimplement utility functions from `console` crate, but with support for OSC sequences.
2020-08-01Change parse_first_style() to take &str instead of bytes iteratorDan Davison
2020-08-01Bug fix: honor blink attributes in ANSI parserDan Davison
Before this, setting `color.diff.old = blink` broke Delta as follows: - Git outputs SGR attribute 5 (blink slow) - Delta at start-up parsed that style string (using Delta's style string parsing code) to a style object without the blink flag set - Subsequently, Delta encountered the ANSI sequences in the raw line from Git and parsed them using vte to a style object with the blink flag set - The two compared unequal, triggering Delta to think that it had seen a line that was not a normal minus line. When Delta reaches that conclusion, it (per d9a07679df and surrounding commits) outputs the raw line with its ANSI sequences intact, rather than creating the usual Delta output for that line.
2020-08-01Parse ANSI escape sequences as ansi_term StyleDan Davison