From f63c58b8890b2b4c895d6873925b997cbc29c649 Mon Sep 17 00:00:00 2001 From: Timon Date: Wed, 13 Jun 2018 18:47:58 +0200 Subject: [PATCH] Update win_commands.rs Removed panic! lines. See [this](https://github.com/TimonPost/crossterm/issues/15) issue --- src/state/commands/win_commands.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/state/commands/win_commands.rs b/src/state/commands/win_commands.rs index 510b893..56f6735 100644 --- a/src/state/commands/win_commands.rs +++ b/src/state/commands/win_commands.rs @@ -38,14 +38,12 @@ impl ICommand for EnableAnsiCommand let mut dw_mode: DWORD = 0; if !kernel::get_console_mode(&output_handle, &mut dw_mode) { - panic!("Cannot get console mode"); return false; } dw_mode |= self.mask; if !kernel::set_console_mode(&output_handle, dw_mode) { - panic!("Cannot get console mode"); return false; }