Hiptext UTF8 block element rendering!

Provides almost double the resolution by using the unicode upper
block character, "▀", and setting its colour as with the fg colour
and the missing space below it with the bg colour. Clever stuff.
This commit is contained in:
Thomas Buckley-Houston 2016-05-22 21:14:02 +09:00
parent e9f5124a45
commit 65e0d7c87f
2 changed files with 6 additions and 2 deletions

View file

@ -16,7 +16,10 @@ RUN apk --no-cache add --virtual build-dependencies \
&& mkdir -p build \
&& cd build \
# Need glibc for locale support
# Need glibc for locale support, not that any UTF8 locales work :/
# This PR seems to be the most relevant: https://github.com/andyshinn/alpine-pkg-glibc/issues/13
# Note that we're currently having to use this hack in hiptext because of alpine's poor locale support:
# https://github.com/tombh/hiptext/commit/bc502af5f6e3b622a9b53d1ffb9a40e74d968ae3
&& wget -q -O /etc/apk/keys/andyshinn.rsa.pub https://raw.githubusercontent.com/andyshinn/alpine-pkg-glibc/master/andyshinn.rsa.pub \
&& wget https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.23-r1/glibc-2.23-r1.apk \
&& apk --no-cache add glibc-2.23-r1.apk \
@ -25,7 +28,7 @@ RUN apk --no-cache add --virtual build-dependencies \
# Watch: https://github.com/jart/hiptext/pull/27
&& git clone https://github.com/tombh/hiptext \
&& cd hiptext \
&& git checkout ffmpeg-updates \
&& git checkout ffmpeg-updates-and-unicode-hack \
&& make \
# Alpine's version of `install` doesn't support the `--mode=` format
&& install -m 0755 hiptext /usr/local/bin \

1
run.sh
View file

@ -59,6 +59,7 @@ sleep 1
# TODO: support dynamic sizing
hiptext \
-font /usr/share/fonts/ttf-dejavu/DejaVuSansMono.ttf \
--xterm256unicode \
-bgprint=true \
$UDP_URI \
2> ./logs/hiptext.log