diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-23 02:25:47 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-23 02:25:47 -0500 |
commit | a5a30357a102b8258e2589ce3dfcfe12faee3849 (patch) | |
tree | 5dc9a64bdb7139622741aae43a4cf54a3b9562f7 /teleterm-web | |
parent | 2b1029c7bcfb2a116116abaae49cf4f9dd50f6a4 (diff) | |
download | teleterm-a5a30357a102b8258e2589ce3dfcfe12faee3849.tar.gz teleterm-a5a30357a102b8258e2589ce3dfcfe12faee3849.zip |
rename a variable
Diffstat (limited to 'teleterm-web')
-rw-r--r-- | teleterm-web/src/views/terminal.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/teleterm-web/src/views/terminal.rs b/teleterm-web/src/views/terminal.rs index e211dd9..104fbca 100644 --- a/teleterm-web/src/views/terminal.rs +++ b/teleterm-web/src/views/terminal.rs @@ -72,18 +72,18 @@ fn style_for_cell( } } -fn color(color: vt100::Color, bold: bool) -> Option<String> { +fn color(color: vt100::Color, bright: bool) -> Option<String> { match color { vt100::Color::Default => None, - vt100::Color::Idx(n) => Some(indexed_color(n, bold).to_string()), + vt100::Color::Idx(n) => Some(indexed_color(n, bright).to_string()), vt100::Color::Rgb(r, g, b) => { Some(format!("#{:02x}{:02x}{:02x}", r, g, b)) } } } -fn indexed_color(mut idx: u8, bold: bool) -> &'static str { - if idx < 8 && bold { +fn indexed_color(mut idx: u8, bright: bool) -> &'static str { + if idx < 8 && bright { idx += 8; } |