#!/usr/bin/awk -f function clamp(val, a, b) { return (valb) ? b : val } ## return a timestamp with centisecond precision function timex() { getline < "/proc/uptime" close("/proc/uptime") return $1 } ## draw image to terminal function draw(src, xpos, ypos, w,h, x,y, up,dn, line,screen) { w = src["width"] h = src["height"] for (y=0; y