aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/callbacks.rs')
-rw-r--r--src/callbacks.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/callbacks.rs b/src/callbacks.rs
index 256eb58..70331eb 100644
--- a/src/callbacks.rs
+++ b/src/callbacks.rs
@@ -7,6 +7,9 @@ pub trait Callbacks {
/// This callback is called when the terminal requests an visual bell
/// (typically with `\eg`).
fn visual_bell(&mut self, _: &mut crate::Screen) {}
+ /// This callback is called when the terminal requests a resize
+ /// (typically with `\e[8;<rows>;<cols>t`).
+ fn resize(&mut self, _: &mut crate::Screen, _request: (u16, u16)) {}
/// This callback is called when the terminal receives invalid input
/// (such as an invalid UTF-8 character or an used control character).
fn error(&mut self, _: &mut crate::Screen) {}