Allow specifying startup command with -e, --command, or --

This commit is contained in:
Jeremy Soller 2024-01-14 12:33:28 -07:00
parent 7fc962b93a
commit 7f37ede453
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 50 additions and 18 deletions

View file

@ -154,6 +154,7 @@ impl Terminal {
entity: segmented_button::Entity,
event_tx: mpsc::Sender<(segmented_button::Entity, Event)>,
config: Config,
options: Options,
app_config: &AppConfig,
colors: Colors,
) -> Self {
@ -198,8 +199,6 @@ impl Terminal {
)));
let window_id = 0;
let options = Options::default();
let pty = tty::new(&options, size.into(), window_id).unwrap();
let pty_event_loop = EventLoop::new(term.clone(), event_proxy, pty, options.hold, false);