aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-03-08 23:43:23 -0500
committerJesse Luehrs <doy@tozt.net>2023-03-09 00:29:47 -0500
commit68c36be2e26813a2a3d7210ae82824de06b3d3ee (patch)
tree19f345f7e05c6cb8c210657e6f0f671113f56f09 /src/callbacks.rs
parenta705c1f07de2b8ec3ba4fe46377242f151b996c1 (diff)
downloadvt100-rust-68c36be2e26813a2a3d7210ae82824de06b3d3ee.tar.gz
vt100-rust-68c36be2e26813a2a3d7210ae82824de06b3d3ee.zip
implement callback for terminal resize request
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) {}