hzeller / timg

A terminal image and video viewer.
GNU General Public License v2.0
1.97k stars 74 forks source link

Add support for `-ps` `s = sextant blocks` #81

Open acxz opened 2 years ago

acxz commented 2 years ago

Currently we support half blocks and quarter blocks, it would be amazing if we can add support for sextant blocks to provide higher resolution.

    " ", "๐Ÿฌ€", "๐Ÿฌ", "๐Ÿฌƒ", "๐Ÿฌ‡", "๐Ÿฌ", "๐Ÿฌž", "๐Ÿฌ‚", // 0..7
    "๐Ÿฌ„", "๐Ÿฌˆ", "๐Ÿฌ", "๐ŸฌŸ", "๐Ÿฌ…", "๐Ÿฌ‰", "๐Ÿฌ‘", "๐Ÿฌ ", // 8..15
    "๐Ÿฌ‹", "๐Ÿฌ“", "๐Ÿฌข", "๐Ÿฌ–", "๐Ÿฌฆ", "๐Ÿฌญ", "๐Ÿฌ†", "๐ŸฌŠ", // 16..23
    "๐Ÿฌ’", "๐Ÿฌก", "๐ŸฌŒ", "โ–Œ", "๐Ÿฌฃ", "๐Ÿฌ—", "๐Ÿฌง", "๐Ÿฌ", // 24..31

    "โ–ˆ", "๐Ÿฌป", "๐Ÿฌบ", "๐Ÿฌน", "๐Ÿฌธ", "๐Ÿฌท", "๐Ÿฌถ", "๐Ÿฌต",
    "๐Ÿฌด", "๐Ÿฌณ", "๐Ÿฌฒ", "๐Ÿฌฑ", "๐Ÿฌฐ", "๐Ÿฌฏ", "๐Ÿฌฎ", "๐Ÿฌญ",
    "๐Ÿฌฌ", "๐Ÿฌซ", "๐Ÿฌช", "๐Ÿฌฉ", "๐Ÿฌจ", "โ–", "๐Ÿฌง", "๐Ÿฌฆ",
    "๐Ÿฌฅ", "๐Ÿฌค", "๐Ÿฌฃ", "๐Ÿฌข", "๐Ÿฌก", "๐Ÿฌ ", "๐ŸฌŸ", "๐Ÿฌž",
    "๐Ÿฌ", "๐Ÿฌœ", "๐Ÿฌ›", "๐Ÿฌš", "๐Ÿฌ™", "๐Ÿฌ˜", "๐Ÿฌ—", "๐Ÿฌ–",
    "๐Ÿฌ•", "๐Ÿฌ”", "โ–Œ", "๐Ÿฌ“", "๐Ÿฌ’", "๐Ÿฌ‘", "๐Ÿฌ", "๐Ÿฌ",
    "๐ŸฌŽ", "๐Ÿฌ", "๐ŸฌŒ", "๐Ÿฌ‹", "๐ŸฌŠ", "๐Ÿฌ‰", "๐Ÿฌˆ", "๐Ÿฌ‡",
    "๐Ÿฌ†", "๐Ÿฌ…", "๐Ÿฌ„", "๐Ÿฌƒ", "๐Ÿฌ‚", "๐Ÿฌ", "๐Ÿฌ€", " ",

This is inspiration from how notcurses renders, see here for relevant code.

Another more drastic idea could be to completely replace the backend rendering of timg with notcurses. And essentially have timg be a media player frontend around notcurses.

As a workaround to this issue, users can use chafa instead.