carp-lang/Carp

REPL prompt is not `鯉` on Linux

t-sin opened this issue · 2 comments

t-sin commented

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?

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

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