#!/bin/sh
args="$*"

vbi="/dev/vbi1"
lines=$(( 16 * 2 * 8 ))
llength=2048

set -ex
(
	echo -ne "P5\n$llength $lines\n255\n";	\
	dd if=$vbi bs=$llength count=$lines
#	echo -ne "P5\n$(( $llength / 1 )) $lines\n255\n";	\
#	dd if=$vbi bs=$llength count=$lines			|\
#	./drop 0 1
) > vbi.pgm
ida vbi.pgm
