aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/concept5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/concept b/doc/concept
index 6cdb3fb..a88ebae 100755
--- a/doc/concept
+++ b/doc/concept
@@ -31,8 +31,9 @@ while [ -e /dev/fb$f ]; do
echo P3
cat /sys/class/graphics/fb$f/virtual_size | sed -e 's/,/ /'
echo 255
- cat /dev/fb$f | od -t u1 -v | cut -d ' ' -f 1 --complement |
- sed -e 's/\([0-9]\+\) \+\([0-9]\+\) \+\([0-9]\+\) \+\([0-9]\+\)/\3 \2 \1/g'
+ (echo 'ibase=16;'; cat /dev/fb$f | od -t x4 -v | cut -d ' ' -f 1 --complement |
+ sed -e 's/\(..\)\(..\)\(..\)\(..\)\( \|$\)/\2 \3 \4 /g' |
+ sed -e 's/ /\n/g' | sed -e '/^$/d' -e 'y/abcedf/ABCEDF/') | bc
) | convert /dev/stdin $pathname
(( f++ ))
done