aboutsummaryrefslogtreecommitdiff
path: root/src/term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/term.rs b/src/term.rs
index a6d591ee..5f5dbfc5 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -112,6 +112,7 @@ pub mod mode {
pub flags TermMode: u8 {
const SHOW_CURSOR = 0b00000001,
const APP_CURSOR = 0b00000010,
+ const APP_KEYPAD = 0b00000100,
const ANY = 0b11111111,
const NONE = 0b00000000,
}
@@ -736,4 +737,16 @@ impl ansi::Handler for Term {
debug_println!("set scroll region: {:?}", region);
self.scroll_region = region;
}
+
+ #[inline]
+ fn set_keypad_application_mode(&mut self) {
+ debug_println!("set mode::APP_KEYPAD");
+ self.mode.insert(mode::APP_KEYPAD);
+ }
+
+ #[inline]
+ fn unset_keypad_application_mode(&mut self) {
+ debug_println!("unset mode::APP_KEYPAD");
+ self.mode.remove(mode::APP_KEYPAD);
+ }
}