phronmophobic / membrane.term

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

Read chars instead of bytes from pty input stream #18

Closed lread closed 2 years ago

lread commented 2 years ago

Wrapping the pty input stream with a clojure.java.io/reader allows us to use a read unit of Unicode char instead of byte.

Fixes #17

phronmophobic commented 2 years ago

Looks good. I'll merge later today 👍

phronmophobic commented 2 years ago

Look great. Fwiw, I was able to reproduce without installing a different version of bash by saving Ψ to a file and running cat <unicode file>.