gyscos / cursive

A Text User Interface library for the Rust programming language
MIT License
4.22k stars 239 forks source link

[BUG] Artifacts in Kitty terminal #623

Open ujjwal3067 opened 2 years ago

ujjwal3067 commented 2 years ago

Describe the bug

Expected behavior

Screenshots

Screen Shot 2022-01-02 at 12 30 25 PM

Environment

gyscos commented 2 years ago

Hi, and thanks for the report!

On my machine (Linux with en_GB.UTF-8 locale), the example renders fine in the kitty terminal. We may need more investigation to understand the issue.

Is the selected locale actually available? (Is it listed if you run locale -a?) Does the issue happen with all other examples (from the examples/ directory) as well? If you try another backend (like crossterm), is the issue still present? Did you try another terminal emulator? Is the issue only happening on kitty?

Yevgnen commented 1 year ago

Got the same issue on macOS 12.6. The issue happens for all the examples. Also happened when backend changed to crossterm. The issue does not exist in iTerm2 and the default Terminal.app. locale outputs

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

and it is in locale -a.

sschuldenzucker commented 2 months ago

Anyone ready for some necromancy? I do get these same errors with the default backend (ncurses) but not with the crossterm backend.