aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-04-27 04:07:58 -0400
committerJesse Luehrs <doy@tozt.net>2016-04-27 04:07:58 -0400
commit61df526acf4687b6b393b1e6c435e613a5dc7db3 (patch)
tree55d71e5f160bb03129cd948f2cb2434f2ed65cfb /src/screen.rs
parentcf1692f0950329279b8b4d9d3d8cc46f974c496e (diff)
downloadvt100-rust-61df526acf4687b6b393b1e6c435e613a5dc7db3.tar.gz
vt100-rust-61df526acf4687b6b393b1e6c435e613a5dc7db3.zip
add most of the rest of the basic screen accessors
Diffstat (limited to 'src/screen.rs')
-rw-r--r--src/screen.rs56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/screen.rs b/src/screen.rs
index 4205451..2251506 100644
--- a/src/screen.rs
+++ b/src/screen.rs
@@ -235,6 +235,62 @@ impl Screen {
ffi::vt100_wrapper_cell_attrs_inverse(&mut (*prefix).attrs) != 0
}
}
+
+ pub fn hide_cursor(&self) -> bool {
+ let Screen(screen_impl) = *self;
+ unsafe {
+ ffi::vt100_wrapper_screen_hide_cursor(screen_impl) != 0
+ }
+ }
+
+ pub fn application_keypad(&self) -> bool {
+ let Screen(screen_impl) = *self;
+ unsafe {
+ ffi::vt100_wrapper_screen_application_keypad(screen_impl) != 0
+ }
+ }
+
+ pub fn application_cursor(&self) -> bool {
+ let Screen(screen_impl) = *self;
+ unsafe {
+ ffi::vt100_wrapper_screen_application_cursor(screen_impl) != 0
+ }
+ }
+
+ pub fn mouse_reporting_press(&self) -> bool {
+ let Screen(screen_impl) = *self;
+ unsafe {
+ ffi::vt100_wrapper_screen_mouse_reporting_press(screen_impl) != 0
+ }
+ }
+
+ pub fn mouse_reporting_press_release(&self) -> bool {
+ let Screen(screen_impl) = *self;
+ unsafe {
+ ffi::vt100_wrapper_screen_mouse_reporting_press_release(screen_impl) != 0
+ }
+ }
+
+ pub fn mouse_reporting_button_motion(&self) -> bool {
+ let Screen(screen_impl) = *self;
+ unsafe {
+ ffi::vt100_wrapper_screen_mouse_reporting_button_motion(screen_impl) != 0
+ }
+ }
+
+ pub fn mouse_reporting_sgr_mode(&self) -> bool {
+ let Screen(screen_impl) = *self;
+ unsafe {
+ ffi::vt100_wrapper_screen_mouse_reporting_sgr_mode(screen_impl) != 0
+ }
+ }
+
+ pub fn bracketed_paste(&self) -> bool {
+ let Screen(screen_impl) = *self;
+ unsafe {
+ ffi::vt100_wrapper_screen_bracketed_paste(screen_impl) != 0
+ }
+ }
}
impl Drop for Screen {