paperdave / various

Various libraries and applications related to TypeScript. Everything is contained in a monorepo to improve productivity and reduce boilerplate.
MIT License
31 stars 3 forks source link

logger: spinner looks off in this weird case #36

Open paperdave opened 2 years ago

paperdave commented 2 years ago

What package(s) does this bug target?

@paperdave/logger

Describe the bug and how to reproduce it.

I'm not sure what causes this since it works fine.

to reproduce. use npm to install package and watch weird encoding happen, node.js v16.17

https://user-images.githubusercontent.com/24465214/185770419-c6a9280a-767a-46f2-b9e4-d420a11c3484.mp4

paperdave commented 1 year ago

i dont get this issue on my computer anymore and i have no idea how i'd reproduce it

paperdave commented 1 year ago

TODO: investigate what chcp 65001 does and how we can detect and apply this fix on WSL

fix was found by @Lawlzer