gansm / finalcut

A text-based widget toolkit
https://github.com/gansm/finalcut/wiki/First-steps#first-steps-with-the-final-cut-widget-toolkit
GNU Lesser General Public License v3.0
981 stars 52 forks source link

can i see images with finalcut ? #94

Closed alavaelian closed 2 years ago

alavaelian commented 2 years ago

hello is posible to watch images in final cut ?.

alexmyczko commented 2 years ago

maybe if you also add https://github.com/hpjansson/chafa or https://github.com/cacalabs/libcaca ?

alavaelian commented 2 years ago

maybe if you also add https://github.com/hpjansson/chafa or https://github.com/cacalabs/libcaca ?

more like https://github-wiki-see.page/m/ranger/ranger/wiki/Image-Previews

gansm commented 2 years ago

FINAL CUT does not have Sixel or ReGIS support. But it should be possible to use a library like chafa to display images in a FINAL CUT dialog box.

alavaelian commented 2 years ago

FINAL CUT does not have Sixel or ReGIS support. But it should be possible to use a library like chafa to display images in a FINAL CUT dialog box.

is planned to add support for this in the future or maybe is pretty imposible ?

gansm commented 2 years ago

FINAL CUT is primarily intended to provide an interactive user interface.

But FINAL CUT provides an abstract terminal control (similar to ncurses). Therefore, the programming is identical for all terminals. This is an excellent base to implement something like this.

For those interested in this, it should be easy to create your own image widget. FDialog and FScrollView would be helpful here.

gansm commented 2 years ago

In the meantime, there is also a viewer for XPM images in the examples.

https://www.reddit.com/r/linux/comments/st4npl/xpm_viewer_for_terminal/

alavaelian commented 2 years ago

is posibble that can i use xpm as icons i mean for the buttons

gansm commented 2 years ago

No, because I do not address pixels but only use Unicode characters ("▀", "▄") for their representation. A 16x16 pixel icon covers an area of 16x8 characters in the terminal.