I didn’t know these characters existed. Thanks! Unicode characters are multi-byte so this means that I would have to link with libncursesw. I messed around with it some, just updating the the board, and couldn’t get it to display correctly: after calling settchar(), an empty string was set when calling wadd_wch().
I haven’t updated or even used cboard in a long time but if your really interested I could make another release.
There are Unicode symbols for all chess pieces.
Maybe your board program should have the option to use them.
If you don’t want to fight around with encodings, then just use UTF-8. Every sane OS uses that and for the others you still have your current pieces (just plain letters) as a fallback.
The cboard git repository now has wide character support and supports these unicode chess pieces although I have yet to get them working on a non-X11 terminal since I cannot find a console font that has theses characters (or maybe I’m doing something wrong).
A new release is coming up so if you could test things that would be cool. By default, the UTF-8 chess pieces are disabled but can be enabled via the configuration file or the -u command line option.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Notify me of new posts via email.
Get every new post delivered to your Inbox.