Bug 246370 - [NEW PORT] graphics/viu: Simple terminal image viewer written in Rust
Summary: [NEW PORT] graphics/viu: Simple terminal image viewer written in Rust
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL: https://github.com/atanunq/viu
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-11 13:50 UTC by Lewis Cook
Modified: 2020-05-18 07:37 UTC (History)
1 user (show)

See Also:


Attachments
viu-1.0.diff (18.67 KB, patch)
2020-05-11 13:50 UTC, Lewis Cook
no flags Details | Diff
viu-1.0.log (88.05 KB, text/plain)
2020-05-11 13:51 UTC, Lewis Cook
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lewis Cook 2020-05-11 13:50:46 UTC
Created attachment 214375 [details]
viu-1.0.diff

Small command-line application to view images from
the terminal written in Rust. It uses lower half
blocks (\u2584) to fit 2 pixels into a single cell
by adjusting foreground and background colours
accordingly.

When run, viu will check the value of $COLORTERM.
If it contains either truecolor or 24bit, truecolor
(16 million colors) will be used. If not, it will
fallback to using only ansi256.

WWW: https://github.com/atanunq/viu

Tested:
 * portlint: OK (looks fine).
 * testport: OK (poudriere: 3.3.4).
Comment 1 Lewis Cook 2020-05-11 13:51:09 UTC
Created attachment 214376 [details]
viu-1.0.log

* Poudriere testport log.
Comment 2 commit-hook freebsd_committer 2020-05-18 07:37:14 UTC
A commit references this bug:

Author: tagattie
Date: Mon May 18 07:36:41 UTC 2020
New revision: 535723
URL: https://svnweb.freebsd.org/changeset/ports/535723

Log:
  Small command-line application to view images from the terminal
  written in Rust. It uses lower half blocks (\u2584) to fit 2 pixels
  into a single cell by adjusting foreground and background colours
  accordingly.

  When run, viu will check the value of $COLORTERM. If it contains
  either truecolor or 24bit, truecolor (16 million colors) will be
  used. If not, it will fallback to using only ansi256.

  WWW: https://github.com/atanunq/viu

  PR:		246370
  Submitted by:	Lewis Cook <vulcan@wired.sh>
  Approved by:	ehaupt (mentor)

Changes:
  head/graphics/Makefile
  head/graphics/viu/
  head/graphics/viu/Makefile
  head/graphics/viu/distinfo
  head/graphics/viu/pkg-descr
Comment 3 Hiroki Tagato freebsd_committer 2020-05-18 07:37:46 UTC
Committed, thanks!