phronmophobic / membrane.term

A terminal emulator in pure clojure
Eclipse Public License 1.0
53 stars 1 forks source link

Show Unicode characters #17

Closed lread closed 2 years ago

lread commented 2 years ago

Extracted from #2.

Problem

Membrane.term currently does not display Unicode characters.

Reproduction

Launch membrane.term via:

clojure -M:membrane.term run-term

From the membrane.term shell session, switch to a version of bash that supports echoing Unicode. For me this was achieved by a brew installed version of bash:

$ /usr/local/Cellar/bash/5.1.8/bin/bash

And now echo the Unicode PSI character:

bash-5.1$ echo -e '\u03A8'

Actual Behavior

No visible character is emitted: image

Expected Behavior

Repeating the above experiment on iTerm2 (configured to use the Menlo font to match the default font of membrane.term) we see the expected character displayed:

bash-5.1$ echo -e '\u03A8'
Ψ

Next steps

I shall follow up with a PR.