heapwolf / prompt-sync

a synchronous prompt for node.js
MIT License
211 stars 42 forks source link

Unable to input non-English letters on Windows #43

Open Heaven31415 opened 3 years ago

Heaven31415 commented 3 years ago

Hi.

I cannot input any non-English letter during prompt. Outside the program I can type whatever letter I want so it doesn't seem to be a problem with my terminal.

I'm running on Windows 10 with node v14.15.0 and using prompt-sync 4.2.0.

A minimal code example which can reproduce the issue:

const prompt = require('prompt-sync')();
console.log(prompt(`Type non-English letter: `));
// I am unable to type any non-English letter
paiva-thiago commented 2 years ago

Real! I was testing this lib and I realized that accented letters like 'é' simply do not appear!

pmqueiroz commented 2 years ago

up

kant2002 commented 1 year ago

In case you guys still interested. I submit partial fix in #64

kant2002 commented 1 year ago

And because there no activity on PR, I publish @kant2002/prompt-sync package with a fix.

BillCipher-exe commented 11 months ago

Problem still exists. unable to input German Ö Ä Ü ß ...

kant2002 commented 11 months ago

@BillCipher-exe did you try my fork?