The primary way to enable Japanese characters is using the -c flag (e.g., cmatrix -c ). According to the ArchWiki, this mode uses half-width Katakana, digits, and symbols to replicate the original movie's "digital rain".

This script creates a simple window with a scrolling effect, using a Japanese font and random Hiragana characters.

Find the logic where the characters are assigned to the matrix array (usually inside a loop like for (j = 0; j <= length; j++) ). You need to replace the random ASCII generation with Japanese logic when the flag is set.

( -r uses rainbow mode, though purists stick to green.)