diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-28 20:58:38 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-28 21:15:36 -0400 |
commit | 54fc0402292c40b500901c59288dfffc22c93137 (patch) | |
tree | e53e18c7dfad96bc1d566dfb75c241a5eaf73de8 /src/color.rs | |
parent | a37fe2c074d276d960563c6254440b35fe035a26 (diff) |
Support same style attribute and color names as git
Diffstat (limited to 'src/color.rs')
-rw-r--r-- | src/color.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/color.rs b/src/color.rs index 4d0d2813..7ca46815 100644 --- a/src/color.rs +++ b/src/color.rs @@ -53,14 +53,23 @@ pub fn ansi_color_name_to_number(name: &str) -> Option<u8> { "cyan" => Some(6), "white" => Some(7), "bright-black" => Some(8), + "brightblack" => Some(8), "bright-red" => Some(9), + "brightred" => Some(9), "bright-green" => Some(10), + "brightgreen" => Some(10), "bright-yellow" => Some(11), + "brightyellow" => Some(11), "bright-blue" => Some(12), + "brightblue" => Some(12), "bright-magenta" => Some(13), + "brightmagenta" => Some(13), "bright-purple" => Some(13), + "brightpurple" => Some(13), "bright-cyan" => Some(14), + "brightcyan" => Some(14), "bright-white" => Some(15), + "brightwhite" => Some(15), _ => None, } } |