nabijaczleweli / termimage

Display images in your terminal, kind of
MIT License
209 stars 4 forks source link

Usage with ncurses-rs #9

Closed phimuemue closed 8 years ago

phimuemue commented 8 years ago

Can termimage be used in conjunction with ncurses-rs (see https://github.com/jeaye/ncurses-rs)?

I would imagine something like outputting the image data to a Vec<Vec<(Color, Color)>> that then can be used by ncurses.

nabijaczleweli commented 8 years ago

What's Color? I couldn't find it in the linked repo.

phimuemue commented 8 years ago

I just wrote Color as a placeholder for the color constants. It's actually i16 (see https://github.com/jeaye/ncurses-rs/blob/8ac680c5549c998fc9c1c0051c6b0f98cd0fa397/src/constants.rs).

nabijaczleweli commented 8 years ago

Let's not do that explicitly but instead let's DRY out some code in such a way to make this simple!

nabijaczleweli commented 8 years ago

You can use ops::create_colourtable() now and display the images yourself with ncurses-rs manually in a simple fashion, thanks for the suggestion.

nabijaczleweli commented 8 years ago

Released in v0.3.0

nabijaczleweli commented 8 years ago

That was a great suggestion, @phimuemue, thanks!