carp-lang / Carp

A statically typed lisp, without a GC, for real-time applications.
Apache License 2.0
5.47k stars 173 forks source link

REPL prompt is not `鯉` on Linux #1423

Closed t-sin closed 1 year ago

t-sin commented 1 year ago

Hi, I'm a newbie for this interesting language. When I ran Carp's REPL on my Ubuntu machine, the prompt string is not sadly. I think that prompt is very nice so I want to be a default prompt on Linux. (I know I can set the prompt via Project.config)

But, with the current implementation, is set when running on mac. What the reason of this?

eriksvedang commented 1 year ago

Hi, and thanks for the question! I think the reason it's like this, is because only some terminal emulators on Linux support unicode. So there's a risk people will get gibberish output. On macOS the built in terminal supports unicode so it's a much safer bet there. So it's just a default to increase the likelihood that people get a nice first time experience. Hope that makes sense!

t-sin commented 1 year ago

Thank you for the answer, it makes sense! My question is resolved I close this issue.