Skip to content

Commit

Permalink
Add a no-op enable_ansi_support for non-windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucretiel committed Aug 18, 2022
1 parent ff7eba9 commit 4e0b4f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

0 comments on commit 4e0b4f2

Please sign in to comment.