diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-03 13:54:34 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-03 13:54:34 -0500 |
commit | 3fb01c1d74debdb4c8fd7395f7a2e0671dfac46b (patch) | |
tree | dacde910750bdbf072eecb9c4a6de1322f123235 /tests/init.rs | |
parent | 7a915a84819ef52561306c74ec813f57974265d2 (diff) | |
download | vt100-rust-3fb01c1d74debdb4c8fd7395f7a2e0671dfac46b.tar.gz vt100-rust-3fb01c1d74debdb4c8fd7395f7a2e0671dfac46b.zip |
clean up public api a bit
Diffstat (limited to 'tests/init.rs')
-rw-r--r-- | tests/init.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/init.rs b/tests/init.rs index 4eb3910..ab56278 100644 --- a/tests/init.rs +++ b/tests/init.rs @@ -3,8 +3,7 @@ #[test] fn init() { let mut screen = vt100::Screen::new(24, 80); - assert_eq!(screen.rows(), 24); - assert_eq!(screen.cols(), 80); + assert_eq!(screen.window_size(), (24, 80)); assert_eq!(screen.cursor_position(), (0, 0)); let cell = screen.cell(0, 0); @@ -36,14 +35,15 @@ fn init() { assert!(!screen.underline()); assert!(!screen.inverse()); - assert!(!screen.hide_cursor()); + assert!(!screen.check_visual_bell()); + assert!(!screen.check_audible_bell()); assert!(!screen.application_keypad()); assert!(!screen.application_cursor()); - assert!(!screen.mouse_reporting_press()); - assert!(!screen.mouse_reporting_press_release()); - assert!(!screen.mouse_reporting_button_motion()); - assert!(!screen.mouse_reporting_sgr_mode()); + assert!(!screen.hide_cursor()); assert!(!screen.bracketed_paste()); - assert!(!screen.check_visual_bell()); - assert!(!screen.check_audible_bell()); + assert_eq!(screen.mouse_protocol_mode(), vt100::MouseProtocolMode::None); + assert_eq!( + screen.mouse_protocol_encoding(), + vt100::MouseProtocolEncoding::Default + ); } |