From 4cb5566a9c2d68006ffa97e2f8082ae3ef6c8de4 Mon Sep 17 00:00:00 2001 From: Valentin Ignatev Date: Thu, 10 Oct 2019 00:37:48 +0300 Subject: Add --hold CLI flag This implements --hold flag which keeps Alacritty open after its child process exits. Fixes #1165. --- alacritty/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'alacritty/src/main.rs') diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index cbd00443..65e13a62 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -178,8 +178,7 @@ fn run(window_event_loop: GlutinEventLoop, config: Config) -> Result<(), // renderer and input processing. Note that access to the terminal state is // synchronized since the I/O loop updates the state, and the display // consumes it periodically. - let event_loop = - EventLoop::new(Arc::clone(&terminal), event_proxy.clone(), pty, config.debug.ref_test); + let event_loop = EventLoop::new(Arc::clone(&terminal), event_proxy.clone(), pty, &config); // The event loop channel allows write requests from the event processor // to be sent to the pty loop and ultimately written to the pty. -- cgit