blessed-contrib icon indicating copy to clipboard operation
blessed-contrib copied to clipboard

Question marks are displayed in the world map

Open bharathvaj-ganesan opened this issue 8 years ago • 7 comments

screenshot from 2017-06-04 11 45 12

bharathvaj-ganesan avatar Jun 04 '17 06:06 bharathvaj-ganesan

if you are using windows try to install the font like this: http://webservices20.blogspot.com/2015/04/running-terminal-dashboards-on-windows.html

otherwise try to use a different terminal.

yaronn avatar Jun 06 '17 07:06 yaronn

I am using linux ububtu. The terminal in the screenshot is builtin one (VS code).

bharathvaj-ganesan avatar Jun 06 '17 07:06 bharathvaj-ganesan

I had a similar issue, sounds like you have to change the font being used from the console. If its consolas, it doesn't have support for some of the special characters being used. I am using the Linux subsystem for windows and I found this guide helpful: https://github.com/aksakalli/gtop/issues/21

mcoirad-gmmb avatar Feb 28 '19 20:02 mcoirad-gmmb

for those who are using iterm and experiencing the same issue, you can go to preferences > profiles > terminal and look for Terminal Emulation section. You can change the character encoding and terminal type there. In my case, I'm using xterm-256color.

jkga avatar Jul 28 '20 08:07 jkga

I struggle to get it to work within the docker conatiner... not sure what fonts are required and how to make sure that the right font is picked up. I've checked multiple threads here that reference this issue, unfortunately none of them seem to be working. Also this: https://github.com/yaronn/blessed-contrib/issues/198 is still open, if anyone has had any luck - you mind sharing? thanks!

Worie avatar Jun 23 '21 16:06 Worie

I have resolved my issue with this: https://stackoverflow.com/a/41648500/3432106

ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

You might need to see what locales are available on your system - those should always be there on Debian likes

Worie avatar Jun 24 '21 08:06 Worie

That's great to know @Worie, thanks for sharing. Would you like to submit a PR update for the README? adding a small new section that suggests this for Docker-enabled applications of blessed contrib?

lirantal avatar Jun 24 '21 12:06 lirantal