console-rs/console

Is there a way to disable emojis?

stonecharioteer opened this issue · 0 comments

Forgive me if it's documented and I couldn't find it. I'm trying to write a CLI that prints emojis for some commands, but I know that there are people (me included) who probably won't want emojis, especially if we're redirecting the output to a text file or something. Is there support for a settiing that disables all emojis?

I currently have a --no-emojis flag that I use, and my commands check for that, but that isn't the most elegant of solutions since I have multiple layers of subcommands.

Perhaps one type of behaviour would be to fall back to the alternate text when the emojis are disabled?