ipinfo/cli

Country flag emoji oddly displayed

Closed this issue Β· 10 comments

There was a new feature introduced in #124 (related issue: #123) to show country flag emoji. This doesn't work as intended in my terminal app and shows country code oddly:
image
I tested with different terminal apps and this either shows oddly or doesn't show up at all based on chosen font. Some fonts do stretch this "emoji" so letters don't overlap, some don't. I really would appreciate this to be togglable. Thank you.

The other way around might be to allow or filter out some fields, which --field option seems to be designed for, though it doesn't work with pretty format and switches output to CSV 😒
The "filter out" option looks better as it would allow newly introduced fields to be shown up by default, which improves UX.

Hmm it's basically a UTF-8 version of the flag: https://flagpedia.net/emoji

My own terminal renders it like this:

image

Not very useful though, guess it only works 'properly' on very specific terminals that specially render it into an emoji image. My native ubuntu terminal used to do this, my WSL terminal however doesn't.

Guess we can just remove this field entirely, seems less useful.

Pushed 02e2503 - we'll release this soon.

@UmanShahzad Thanks a bunch!

Is there any timeline on the nearest release? This weirdness with flag is a bit annoying 😒

We've got a lot more changes coming along with that in the pipeline, so will be doing a significant release very soon. Stay tuned!

@UmanShahzad Any at least approx timeline? It makes ipinfo semi unusable to me =(

@yermulnik just released 3.0.0 which has this fix πŸ‘

Yay! Appreciate that! πŸ•ΊπŸ»

Looking forward for the Brew tap to get this update soon 🀞🏻