Skip to content

Commit 4e0b4f2

Browse files
committed
Add a no-op enable_ansi_support for non-windows platforms
1 parent ff7eba9 commit 4e0b4f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/windows.rs

+7
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,10 @@ pub fn enable_ansi_support() -> Result<(), u32> {
5959

6060
return Ok(());
6161
}
62+
63+
/// Enable ANSI support on Windows 10. This is a no-op on non-windows platforms
64+
#[cfg(not(windows))]
65+
#[inline]
66+
pub fn enable_ansi_support() -> Result<(), u32> {
67+
Ok(())
68+
}

0 commit comments

Comments
 (0)