summaryrefslogtreecommitdiffstats
path: root/src/draw.rs
AgeCommit message (Collapse)Author
2020-08-14Use native ansi-parsing utilities instead of console crateDan Davison
Fixes #262 console was great but it didn't support ANSI OSC sequences.
2020-06-30Add more computed values to options structDan Davison
2020-06-19Refactor: add native style.paint() methodDan Davison
2020-06-02Implement compositional decoration attributesDan Davison
Ref #205
2020-05-31Make decorations honor --width variableDan Davison
2020-05-31Implement --{commit,file,hunk-header}-style=rawDan Davison
2020-05-31Fix painting of file line under --decoration-style=omitDan Davison
2020-05-30Make decoration style non-optionalDan Davison
2020-05-29Paint box-drawing characters with bold attribute when bold requestedDan Davison
Reverts functionality change in ad9c0899c32217f42ce0b68e5191e16c69355c77
2020-05-28Bug fix: honor bold by using "heavy" box drawing charactersDan Davison
This commit honors the bold style attribute by selecting characters from the "heavy" set and then painting those without the bold attribute set. Painting with the bold style attribute set seems to result in incorrect rendering of the box-drawing characters: e.g. the vertical line sections don't "meet up" (at least, in iTerm2 and Terminal on MacOS).
2020-05-28Bug fix: hunk header background color was not reaching box lineDan Davison
2020-05-27Add overline and underoverline decoration stylesDan Davison
2020-05-26Implement --{commit,file,hunk-header}-{style,decoration-style}Dan Davison
2020-05-22Use ansi_term style data structures instead of syntectDan Davison
2020-04-15Merge branch 'master' into width-calc-fixDan Davison
2020-03-01Support 256-color terminal environmentsDan Davison
Fixes #110 With this commit, delta enters "24 bit color mode" iff either of the following are true: 1. The --24-bit-color command line option value is "always" 2. The --24-bit-color command line option value is "auto" and the COLORTERM environment variable is set to "truecolor" or "24bit". See https://gist.github.com/XVilka/8346728#true-color-detection https://github.com/sharkdp/bat/blob/7779d9f6221b3e98c43a43ceb5596ba285fdf4f8/src/bin/bat/app.rs#L29-L33 Otherwise, delta enters "8-bit color mode". In "24 bit color mode", delta will 1. Emit 24-bit RGB color shell escape sequences that will only be displayed correctly by a terminal application that supports 24 bit colors. 2. Select default background colors that will only be displayed correctly by a terminal application that supports 24 bit colors. In "8-bit color mode", delta will 1. Emit color shell escape sequences specifying the entry in the ANSI 256 color palette that is closest (according to the ansi_colours library) to the requested color. 2. Select default background colors that will work well in a terminal application that supports 8-bit color but not 24-bit color.
2020-02-27Provide CLI options for all colorsDan Davison
- Fixes #99, #103 - Support both RGB and ANSI codes - Eliminate (almost) ansi_term crate in favor of syntect for representing colors
2020-02-14Fix missing newline in draw::write_boxed_with_lineGuy Bolton King
2019-11-14Properly calculate string widths with unicode_widthWang Xuerui
Fixes diffs rendering with lines containing CJK characters.
2019-10-13Merge pull request #22 from dandavison/10-allow-less-extra-columnDan Davison
Fix width calculation and terminating newline when writing underline
2019-10-13Merge pull request #21 from dandavison/18-terminal-width-subtractionDan Davison
Don't compute negative line lengths
2019-10-13Fix width calculation and terminating newline when writing underlineDan Davison
Fixes #10
2019-10-13Don't compute negative line lengthsDan Davison
Fixes #18
2019-10-13Add dyn to suppress warningJason Shirk
2019-07-29Tweak styling of file metadataDan Davison
2019-07-20Use grapheme units for all visible character calculations0.0.4Dan Davison
2019-07-13Refactor: draw moduleDan Davison
2019-07-12Support heavy line weight boxesDan Davison
2019-07-12Refactor: box drawing moduleDan Davison