Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkbox icon display error #22

Closed
lythu95 opened this issue Sep 17, 2021 · 6 comments
Closed

checkbox icon display error #22

lythu95 opened this issue Sep 17, 2021 · 6 comments

Comments

@lythu95
Copy link

lythu95 commented Sep 17, 2021

When executing check box examples, I found the check box icons were not displaying normally. I suppose it may be text encoding issue.
image

@kazhala
Copy link
Owner

kazhala commented Sep 18, 2021

Hi @lythu95 ,

Thanks for reporting. I wasn't aware that the default icon is not as compatible as I would like. I'll do an update on the default icon for checkbox to make sure its more compatible.

Just a quick question about your environment, what terminal emulator and font are you using?

In the meantime, you can use the enabled_symbol and disabled_symbol parameter to change to a different icon.

Thanks,
Kevin

@lythu95
Copy link
Author

lythu95 commented Sep 18, 2021

Thanks for quick response @kazhala

I executed this script on a remote server [CentOS linux 7.9.2009 / GNU bash 4.2.46 ].
SSH client is MobaXterm v12.03 build 4208, font setting being MobaFont with Charset UTF-8
image

I really appriciate your work on inquirerpy, which helps me a lot after PyInquirer stopped updating.

Thanks,
lythu95

kazhala added a commit that referenced this issue Oct 5, 2021
@kazhala
Copy link
Owner

kazhala commented Oct 5, 2021

Hi @lythu95,

After some investigation and searching, doesn't seem like an encoding issue since python3 auto detects Unicode string and use utf8 encoding. I can also see that the pointer symbol/icon is showing without issues.

It's probably just both the hexagon icon is not that widely supported in some of the fonts. I've changed the default icon to Unicode circles.

Could you take a look at the latest master and re-run the examples to see if you could see the checkbox properly this time?

Thanks,
Kevin

@lythu95
Copy link
Author

lythu95 commented Oct 8, 2021

Hi @kazhala ,
Now it works well and the circle icon displays normally. Thanks for your efforts!
image

@kazhala
Copy link
Owner

kazhala commented Oct 8, 2021

Awesome, I'll close the issue once the next version is released. Thanks

@kazhala
Copy link
Owner

kazhala commented Oct 12, 2021

This is now included in the latest version 0.3.0

@kazhala kazhala closed this as completed Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants