Skip to content

Fix Japanese character mode with ncursesw - #213

Open
IdkIsThisAGooodName wants to merge 1 commit into
abishekvashok:masterfrom
IdkIsThisAGooodName:fix-japanese-cmatrix
Open

Fix Japanese character mode with ncursesw#213
IdkIsThisAGooodName wants to merge 1 commit into
abishekvashok:masterfrom
IdkIsThisAGooodName:fix-japanese-cmatrix

Conversation

@IdkIsThisAGooodName

Copy link
Copy Markdown

Description

Fixes blank output when using cmatrix -c with wide-character ncurses.

Changes

  • Prefer ncursesw when detecting the curses library.
  • Remove the unconditional ncurses library check that causes both ncurses and ncursesw to be linked.
  • Use addwstr() to render the Japanese characters used by -c.

Testing

Tested on Fedora 44 with CMatrix 2.0.

Before this change:

cmatrix -c

produced blank output.

After this change, cmatrix -c correctly displays the Japanese Matrix characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant