Added settings for common terminal configurations
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use std::time::Duration;
|
||||
|
||||
use alacritty_terminal::term::SizeInfo;
|
||||
use gpui::{AppContext, ModelContext, ModelHandle, ReadModelWith, TestAppContext};
|
||||
use gpui::{AppContext, ModelHandle, ReadModelWith, TestAppContext};
|
||||
use itertools::Itertools;
|
||||
|
||||
use crate::{
|
||||
@@ -28,7 +28,8 @@ impl<'a> TerminalTestContext<'a> {
|
||||
false,
|
||||
);
|
||||
|
||||
let connection = cx.add_model(|cx| TerminalConnection::new(None, size_info, cx));
|
||||
let connection =
|
||||
cx.add_model(|cx| TerminalConnection::new(None, None, None, size_info, cx));
|
||||
|
||||
TerminalTestContext { cx, connection }
|
||||
}
|
||||
@@ -56,13 +57,6 @@ impl<'a> TerminalTestContext<'a> {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn update_connection<F, S>(&mut self, f: F) -> S
|
||||
where
|
||||
F: FnOnce(&mut TerminalConnection, &mut ModelContext<TerminalConnection>) -> S,
|
||||
{
|
||||
self.connection.update(self.cx, |conn, cx| f(conn, cx))
|
||||
}
|
||||
|
||||
fn grid_as_str(connection: &TerminalConnection) -> String {
|
||||
let term = connection.term.lock();
|
||||
let grid_iterator = term.renderable_content().display_iter;
|
||||
|
||||
Reference in New Issue
Block a user