johnnovak / illwill

A curses inspired simple cross-platform console library for Nim
Do What The F*ck You Want To Public License
398 stars 27 forks source link

Characters stays on screen #33

Closed PascalLeMerrer closed 2 years ago

PascalLeMerrer commented 2 years ago

I'm creating my first Nim app. Illwill seems a great library for achieving it. Thanks for publishing it!

However, when the screen content is updated, some characters of its previous content remain visible. I tried several things, like filling the screen with spaces before an update, clearing the terminal buffer, etc, but it does not solve my issue.

It would be very kind of you if you could have a look at my project and tell me what I'm doing wrong.

To reproduce the issue, just navigate in the folders whose content is displayed by the app.

PascalLeMerrer commented 2 years ago

It looks like the problem is caused by the file folder emoji. It breaks the display in the remaining of the line. Replacing it with an ASCII char solves the issue. Is there a way for the terminal buffer to support Unicode chars?

PascalLeMerrer commented 2 years ago

Reading again the readme helped.

Use it if

(...) You don't need to support any fancy encodings and terminal types other than UTF-8.

Sorry for the noise.