From d155f5cd6c1a8c6a6e2b7259a8b0cee3187941ac Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 18 Dec 2023 10:27:41 +0400 Subject: Add a config flag to disable an output --- src/backend/tty.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/backend') diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 381113dc..f091672f 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -431,6 +431,11 @@ impl Tty { .cloned() .unwrap_or_default(); + if config.off { + debug!("output is disabled in the config"); + return Ok(()); + } + let device = self .output_device .as_mut() -- cgit