This piece of code in wikipedia:
$ char=( 6a 6b 6c 6d 6e 71 74 75 76 77 78 )
$ for i in ${char[*]}; do printf "0x$i \x$i \e(0\x$i\e(B\n"; done
includes one-line box-drawing characters. Are there double-line box-drawing characters in terminal?
For example how can I print the character "╢".
I'll use them in a C++ program like this:
#include <stdio.h>
int main()
{
printf("\e(0\x6a\e(B "); // 188
printf("\e(0\x6b\e(B "); // 187
printf("\e(0\x6c\e(B "); // 201
printf("\e(0\x6d\e(B "); // 200
printf("\e(0\x6e\e(B "); // 206
printf("\e(0\x71\e(B "); // 205
printf("\e(0\x74\e(B "); // 204
printf("\e(0\x75\e(B "); // 185
printf("\e(0\x76\e(B "); // 202
printf("\e(0\x77\e(B "); // 203
printf("\e(0\x78\e(B "); // 186
}
apt-get install ncurses-dev
on Debian as an example). Hard coding unicode characters into print statements is horribly unportable.