Emojis don't render properly on all terminals
See original GitHub issueEmojis cannot be rendered on every terminal. This causes the issue that log messages will look strange and don’t have a common alignment.
You can see the issue by running my demo code in different terminals:
NODE_DEBUG=* node index.js
const logdown = require('logdown')
const logger = logdown('MyLogger')
logger.debug('Type "debug"')
logger.error('Type "error"')
logger.info('Type "info"')
logger.log('Type "log"')
logger.warn('Type "warn"')
Because the output isn’t consistent across platforms, we should replace emojis with standard ASCII symbols (which can be rendered on most of the systems).
I also noticed that logger.debug
is not printed on the console. How can I get debug
messages? I already used NODE_DEBUG=*
.
Command-line interface (Windows)
PowerShell (Windows)
Ubuntu Bash (Linux Subsystem on Windows 10)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Some terminal can't display emoji correctly - Stack Overflow
I have several terminals installed. But only some of them can display all Unicode characters correctly. For example, classic emoji symbol ...
Read more >terminal does not show emoji correctly : IDEA-161919
Hi, I'm usign this (https://github.com/omnidan/node-emoji) to render emojis in node applications. In VS Code console all look great, in WebStorm(PhpStorm) ...
Read more >emojis are not displaying in the characters app & brave ...
what fonts are required to be installed for them to work properly. enter image description here. display · fonts · gui · emoji....
Read more >Terminal I/O on Windows - Swift Forums
Complex characters (curly quotes, emoji, ...) don't render properly in Windows terminals. At first, I tried executing chcp 65001 prior to ...
Read more >F.A.Q. - Wez's Terminal Emulator
Some (but not all) Emoji don't render properly. To some extent this issue can manifest in a similar way to the LANG and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m cool with that
The easiest to implement (and already useful) config would be turning it on or off completely.