#!/bin/bash
. <(ffoom init)
ffoo import core
CSDEMO_FNAME=$1
CSDEMO_BG="$(mktemp)"
CSDEMO_FG="$(mktemp)"
xd2html() {
local name color
while read line;
do
name="${line%%:*}"
color="${line##*:}"
test -n "$name" || continue
test -n "$color" || continue
debug -v name color
test "$name" == "URxvt.background" && echo "$color" > $CSDEMO_BG
test "$name" == "URxvt.foreground" && echo "$color" > $CSDEMO_FG
echos "