/* Add to getopt string (usually something like "abBcfhklLs:u:Vx") */ /* Add 'j' to that string */ while ((c = getopt(argc, argv, "abBcfhjklLs:u:Vx")) != -1) switch (c) /* ... existing cases ... */ case 'j': japanese_mode = 1; break; /* ... */
Use unimatrix . It is the modern standard for this effect. cmatrix japanese font
sudo apt install fbterm fbterm -f NotoMonoCJK cmatrix -u 3 /* Add to getopt string (usually something like
: You must have CJK (Chinese, Japanese, Korean) fonts installed. Recommended packages for Linux users include: noto-fonts-cjk (Google's Noto fonts for CJK characters). otf-ipafont or ttf-droid . otf-ipafont or noto-cjk on Arch
: Your system must have Japanese character support installed (e.g., otf-ipafont or noto-cjk on Arch; fonts-takao-mincho on Ubuntu/Debian).
By default, cmatrix uses: