diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-04-05 16:24:20 +0300 |
|---|---|---|
| committer | Can Celik <ogulcancelik@gmail.com> | 2026-04-05 16:38:50 +0300 |
| commit | b2e6929aa8199574565fd4adf1e631c68d479e6c (patch) | |
| tree | 99964965fe84f9ea31a0dec7ede2393631dc7f50 /vendor/vt100/src/callbacks.rs | |
| parent | 822c3b9e2d1edb7481fa558497dd33c7f5dca9ee (diff) | |
refactor: remove vt100 backend and make ghostty default
Diffstat (limited to 'vendor/vt100/src/callbacks.rs')
| -rw-r--r-- | vendor/vt100/src/callbacks.rs | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/vendor/vt100/src/callbacks.rs b/vendor/vt100/src/callbacks.rs deleted file mode 100644 index cce6f6c0..00000000 --- a/vendor/vt100/src/callbacks.rs +++ /dev/null @@ -1,69 +0,0 @@ -/// This trait is used by the parser to handle extra escape sequences that -/// don't have an impact on the terminal screen directly. -pub trait Callbacks { - /// This callback is called when the terminal requests an audible bell - /// (typically with `^G`). - fn audible_bell(&mut self, _: &mut crate::Screen) {} - /// This callback is called when the terminal requests a 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 requests the window title - /// to be set (typically with `\e]1;<icon_name>\a`) - fn set_window_icon_name( - &mut self, - _: &mut crate::Screen, - _icon_name: &[u8], - ) { - } - /// This callback is called when the terminal requests the window title - /// to be set (typically with `\e]2;<title>\a`) - fn set_window_title(&mut self, _: &mut crate::Screen, _title: &[u8]) {} - /// This callback is called when the terminal requests data to be copied - /// to the system clipboard (typically with `\e]52;<ty>;<data>\a`). Note - /// that `data` will be encoded as base64. - fn copy_to_clipboard( - &mut self, - _: &mut crate::Screen, - _ty: &[u8], - _data: &[u8], - ) { - } - /// This callback is called when the terminal requests data to be pasted - /// from the system clipboard (typically with `\e]52;<ty>;?\a`). - fn paste_from_clipboard(&mut self, _: &mut crate::Screen, _ty: &[u8]) {} - /// This callback is called when the terminal receives an escape sequence - /// which is otherwise not implemented. - fn unhandled_char(&mut self, _: &mut crate::Screen, _c: char) {} - /// This callback is called when the terminal receives a control - /// character which is otherwise not implemented. - fn unhandled_control(&mut self, _: &mut crate::Screen, _b: u8) {} - /// This callback is called when the terminal receives an escape sequence - /// which is otherwise not implemented. - fn unhandled_escape( - &mut self, - _: &mut crate::Screen, - _i1: Option<u8>, - _i2: Option<u8>, - _b: u8, - ) { - } - /// This callback is called when the terminal receives a CSI sequence - /// (`\e[`) which is otherwise not implemented. - fn unhandled_csi( - &mut self, - _: &mut crate::Screen, - _i1: Option<u8>, - _i2: Option<u8>, - _params: &[&[u16]], - _c: char, - ) { - } - /// This callback is called when the terminal receives a OSC sequence - /// (`\e]`) which is otherwise not implemented. - fn unhandled_osc(&mut self, _: &mut crate::Screen, _params: &[&[u8]]) {} -} - -impl Callbacks for () {} |
