stefanhaustein / TerminalImageViewer

Small C++ program to display images in a (modern) terminal using RGB ANSI codes and unicode block graphics characters
Other
1.56k stars 111 forks source link

Strange characters in terminal #38

Closed nickbe closed 5 years ago

nickbe commented 5 years ago

tiv only works halfway as expected when using the -256 option. But even then I can see strange characters inside the blocks:

grafik

Any idea how to get rid of that? I'm using kitty/putty in windows.

stefanhaustein commented 5 years ago

Hack: comment out the unsupported characters here: https://github.com/stefanhaustein/TerminalImageViewer/blob/f80071243f68fa01b34a037477366673e4e87862/src/main/cpp/tiv.cpp#L29

Longer term: Disable characters using a flag.

Did you try the -0 option?

nickbe commented 5 years ago

Yes I did, but then the image gets messed up completely. I've just tried the latest daily build of putty and there everything works just fine. So this seems to be a kitty problem.

GottZ commented 5 years ago

seems to me like you should switch your console font to something like fira code or inconsolata (using windows is no excuse for ignoring unicode additions)

stefanhaustein commented 5 years ago

Closing as the problem is addressed by using a new version of kitty