aboutsummaryrefslogtreecommitdiffstats
path: root/tests/basic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic.rs')
-rw-r--r--tests/basic.rs9
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());
+ }
}