Function terminal_supports_emoji::supports_emoji[][src]

pub fn supports_emoji(stream: Stream) -> bool

Check if the given IO stream supports Emoji output.

Platforms support is determined by checking these conditions: - macOS has Emoji support by default - Unix systems have support if the active language supports them. - Windows machines running the new Terminal app support Emojis.

Arguments

  • stream: The stream to check for.

Returns

true if the stream and platform support Emoji output, false otherwise.