heapwolf / prompt-sync

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

Add support for reading non-ASCII characters on Windows #64

Open kant2002 opened 1 year ago

kant2002 commented 1 year ago

That's probably half-backed measurement, but at least it allow end-application alleviate issue. For example to read Cyrillic you need to

chcp 1251

and pass windows-1251 to encoding property of config object.

Closes #43