amethyst / bracket-lib

The Roguelike Toolkit (RLTK), implemented for Rust.
MIT License
1.51k stars 108 forks source link

Curses mode displays cp437 characters and colours incorrectly #209

Open lacqui opened 3 years ago

lacqui commented 3 years ago

When using Bracket-Lib in Curses mode, on Raspberry Pi 3, colours and extended-ASCII characters don't appear correctly. I have verified that Curses works on my Pi.

This is a screenshot from the Rusty Roguelike tutorial, using code directly from https://github.com/amethyst/rustrogueliketutorial

2021-05-14-221246_671x1007_scrot

thebracket commented 3 years ago

Unfortunately, I don't have a PI to test on. I wonder if the terminal implementation includes the extra unicode font support? What happens if you try the crossterm feature? If it has the same issue, then it may be that the terminal isn't unicode friendly.

lacqui commented 3 years ago

Here's a screenshot with crossterm. Seems to be working. I'm also able to view the source (including Unicode glyphs) by 'cat'ing it on my terminal.

2021-05-15-091744_671x1007_scrot

thebracket commented 3 years ago

Well, that's encouraging. My guess is going to be that for some reason, curses isn't getting put into "wide" mode. I'll see if I can find anything that would affect that (we use a wrapper that provides Windows support - so hopefully the issue is one I can fix).

redwing-bb commented 3 years ago

Seeing this problem also on Ubuntu 20.04 (current long term support release) in gnome-terminal and RXVT. I tried the crossterm feature but the examples don't compile at all with crossterm.