From ea0444f2bb0ad94431a597e29f15d61cfa237508 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 27 Apr 2016 02:51:35 -0400 Subject: implement the rest of the cell attrs --- tests/basic.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') 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()); + } } -- cgit v1.2.3-54-g00ecf