From 27925297883cfabe84a5774b150436d7ac8d1932 Mon Sep 17 00:00:00 2001 From: Nathan West Date: Thu, 18 Aug 2022 16:36:56 -0400 Subject: [PATCH] Add a no-op `enable_ansi_support` for non-windows platforms --- src/windows.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/windows.rs b/src/windows.rs index fcf02ec..acd0b6f 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -59,3 +59,10 @@ pub fn enable_ansi_support() -> Result<(), u32> { return Ok(()); } + +/// Enable ANSI support on Windows 10. This is a no-op on non-windows platforms +#[cfg(not(windows))] +#[inline] +pub fn enable_ansi_support() -> Result<(), u32> { + Ok(()) +}