diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-04-27 02:51:35 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-04-27 03:03:46 -0400 |
commit | ea0444f2bb0ad94431a597e29f15d61cfa237508 (patch) | |
tree | 6a12efd1cc30a7d936306bc40a9860a22f047fcb /tests | |
parent | df328c13903d5a0e595d27b14f79e2a61f66f8fc (diff) | |
download | vt100-rust-ea0444f2bb0ad94431a597e29f15d61cfa237508.tar.gz vt100-rust-ea0444f2bb0ad94431a597e29f15d61cfa237508.zip |
implement the rest of the cell attrs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basic.rs b/tests/basic.rs index 7af33f0..f6cbad0 100644 --- a/tests/basic.rs +++ b/tests/basic.rs @@ -67,4 +67,13 @@ mod tests { vt100::Color::ColorIdx(2) ); } + + #[test] + fn cell_attrs() { + let mut screen = vt100::Screen::new(24, 80); + let input = b"foo\x1b[31m\x1b[32mb\x1b[3;7;42ma\x1b[23mr"; + screen.process(input); + + assert!(screen.cell(0, 4).unwrap().italic()); + } } |