diff options
Diffstat (limited to 'src/ansi')
| -rw-r--r-- | src/ansi/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ansi/mod.rs b/src/ansi/mod.rs index 4265b45..95966da 100644 --- a/src/ansi/mod.rs +++ b/src/ansi/mod.rs @@ -119,6 +119,12 @@ impl TerminalInput { } } +impl Default for TerminalInput { + fn default() -> Self { + Self::new() + } +} + // expecting a string of the form `\x1b[n;mR` fn try_parse_cursor_position_message(mut msg: &[u8]) -> Option<CursorPos> { if !msg.starts_with(b"\x1b[") || !msg.ends_with(b"R") { |
