1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 18:57:59 +03:00

fixup term tests for set_title cleanup

This commit is contained in:
Wez Furlong 2020-01-26 10:02:07 -08:00
parent f3e42c3d2a
commit 50caecfd9d

View File

@ -15,15 +15,11 @@ use termwiz::escape::csi::{Edit, EraseInDisplay, EraseInLine};
use termwiz::escape::{OneBased, OperatingSystemCommand, CSI};
use termwiz::surface::CursorShape;
struct TestHost {
title: String,
}
struct TestHost {}
impl TestHost {
fn new() -> Self {
Self {
title: String::new(),
}
Self {}
}
}
@ -65,10 +61,6 @@ impl Clipboard for LocalClip {
}
impl TerminalHost for TestHost {
fn set_title(&mut self, title: &str) {
self.title = title.into();
}
fn writer(&mut self) -> &mut dyn std::io::Write {
self
}