#!/bin/bash
# fbterm-gentoo: draws the Gentoo-themed background to the framebuffer,
# then launches fbterm on top of it. fbterm doesn't load images itself --
# it snapshots whatever's already on the framebuffer when it starts, so
# the image has to be drawn first, separately, by fbv.

IMAGE="/usr/share/backgrounds/gentoo-tty.png"

echo -ne "\e[?25l"   # hide cursor while fbv draws
fbv -ciuker "${IMAGE}" << EOF
q
EOF

export FBTERM_BACKGROUND_IMAGE=1
exec fbterm
